Skip to content

Commit 301ddae

Browse files
author
pyocd-bot
committed
Deploying to main from @ pyocd/pyocd-website-source@307cef1 🚀
1 parent fddd64d commit 301ddae

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/automated_tests.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ <h5 class="sidebar-header">On this page</h5>
216216
<li class="toc-entry toc-h2"><a href="#functional-tests">Functional tests</a></li>
217217
<li class="toc-entry toc-h2"><a href="#azure-pipelines">Azure Pipelines</a></li>
218218
<li class="toc-entry toc-h2"><a href="#testing-with-tox">Testing with tox</a></li>
219+
<li class="toc-entry toc-h2"><a href="#test-setup">Test Setup</a></li>
219220
</ul>
220221
</div>
221222
</div>
@@ -297,6 +298,20 @@ <h2 id="testing-with-tox">Testing with tox</h2>
297298

298299
<p>Currently only the functions tests are included in the tox configuration.</p>
299300

301+
<h2 id="test-setup">Test Setup</h2>
302+
303+
<p>To make the tests pick the correct setup, a <a href="configuration.md"><code class="highlighter-rouge">pyocd.yaml</code> configuration file</a> has to be used.
304+
For functional testing the file should contain a reference to a <code class="highlighter-rouge">test_binary</code> from <code class="highlighter-rouge">test/data/binaries</code>.</p>
305+
306+
<p>Example config file:</p>
307+
308+
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">probes</span><span class="pi">:</span>
309+
<span class="na">E6614103E7176A23</span><span class="pi">:</span> <span class="c1"># Probe's unique ID.</span>
310+
<span class="na">target_override</span><span class="pi">:</span> <span class="s">nrf52</span>
311+
<span class="na">test_binary</span><span class="pi">:</span> <span class="s">l1_nrf52840-dk.bin</span>
312+
<span class="na">frequency</span><span class="pi">:</span> <span class="m">6000000</span>
313+
</code></pre></div></div>
314+
300315

301316
</div>
302317
</div>

0 commit comments

Comments
 (0)