[installation] Change to nightly
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>Unit Testing — SeisComP Release documentation</title>
|
||||
<title>Unit Testing — SeisComP Development documentation</title>
|
||||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../_static/seiscomp.css" type="text/css" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=72bcf2f2" />
|
||||
@ -12,7 +12,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=eafc0fe6" />
|
||||
<script type="text/javascript" src="../_static/seiscomp.js"></script>
|
||||
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
|
||||
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=823bb831"></script>
|
||||
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=744d344a"></script>
|
||||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
@ -24,8 +24,8 @@
|
||||
<div class="container">
|
||||
<div class="brand">
|
||||
<img class="logo" src="../_static/brands/seiscomp/text/white.svg"/>
|
||||
<!-- span class="title">SeisComP Release</span -->
|
||||
<span class="version">6.9.0</span>
|
||||
<!-- span class="title">SeisComP Development</span -->
|
||||
<span class="version">7.0.0</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -63,13 +63,13 @@
|
||||
<span id="unittests"></span><h1>Unit Testing<a class="headerlink" href="#unit-testing" title="Permalink to this heading">¶</a></h1>
|
||||
<section id="introduction">
|
||||
<h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this heading">¶</a></h2>
|
||||
<p>From Wikipedia:</p>
|
||||
<blockquote>
|
||||
<div><p>In computer programming, unit testing is a software testing method by which
|
||||
individual units of source code, sets of one or more computer program modules
|
||||
together with associated control data, usage procedures, and operating
|
||||
procedures, are tested to determine whether they are fit for use. <a class="footnote-reference brackets" href="#wput" id="id1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a></p>
|
||||
</div></blockquote>
|
||||
<p>From Wikipedia <a class="footnote-reference brackets" href="#wput" id="id1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a>:</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">In</span> <span class="n">computer</span> <span class="n">programming</span><span class="p">,</span> <span class="n">unit</span> <span class="n">testing</span> <span class="ow">is</span> <span class="n">a</span> <span class="n">software</span> <span class="n">testing</span> <span class="n">method</span> <span class="n">by</span> <span class="n">which</span>
|
||||
<span class="n">individual</span> <span class="n">units</span> <span class="n">of</span> <span class="n">source</span> <span class="n">code</span><span class="p">,</span> <span class="n">sets</span> <span class="n">of</span> <span class="n">one</span> <span class="ow">or</span> <span class="n">more</span> <span class="n">computer</span> <span class="n">program</span> <span class="n">modules</span>
|
||||
<span class="n">together</span> <span class="k">with</span> <span class="n">associated</span> <span class="n">control</span> <span class="n">data</span><span class="p">,</span> <span class="n">usage</span> <span class="n">procedures</span><span class="p">,</span> <span class="ow">and</span> <span class="n">operating</span>
|
||||
<span class="n">procedures</span><span class="p">,</span> <span class="n">are</span> <span class="n">tested</span> <span class="n">to</span> <span class="n">determine</span> <span class="n">whether</span> <span class="n">they</span> <span class="n">are</span> <span class="n">fit</span> <span class="k">for</span> <span class="n">use</span><span class="o">.</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>This chapter targets programmers, either ones contributing to <cite>SeisComP</cite> or
|
||||
adding their extended set of modules / libraries.</p>
|
||||
<p>Since most of the <cite>SeisComP</cite> code is written in C++, this chapter focuses on
|
||||
@ -110,10 +110,10 @@ its executable against the library the tests are built for.</p>
|
||||
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>make<span class="w"> </span><span class="nb">test</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>in the build directory. Thats it.</p>
|
||||
<p>in the build directory. That’s it.</p>
|
||||
</section>
|
||||
<section id="test-implementation">
|
||||
<h2>Test implementation<a class="headerlink" href="#test-implementation" title="Permalink to this heading">¶</a></h2>
|
||||
<h2>Test Implementation<a class="headerlink" href="#test-implementation" title="Permalink to this heading">¶</a></h2>
|
||||
<p>The following section shows an example of a simple but in many cases sufficient
|
||||
test module. This example can be used as a template for an <cite>SeisComP</cite> unit test.</p>
|
||||
<div class="highlight-cpp notranslate"><div class="highlight"><pre><span></span><span class="cp">#define SEISCOMP_TEST_MODULE [TestModuleName]</span>
|
||||
@ -331,7 +331,7 @@ tests.</p>
|
||||
<li><a class="reference internal" href="#introduction">Introduction</a></li>
|
||||
<li><a class="reference internal" href="#preparations">Preparations</a></li>
|
||||
<li><a class="reference internal" href="#execution">Execution</a></li>
|
||||
<li><a class="reference internal" href="#test-implementation">Test implementation</a><ul>
|
||||
<li><a class="reference internal" href="#test-implementation">Test Implementation</a><ul>
|
||||
<li><a class="reference internal" href="#warning-levels">Warning levels</a></li>
|
||||
<li><a class="reference internal" href="#tools">Tools</a></li>
|
||||
</ul>
|
||||
@ -366,7 +366,7 @@ tests.</p>
|
||||
</a>
|
||||
<div class="stretched align-center fitted content">
|
||||
<div>
|
||||
Version <b>6.9.0</b> Release
|
||||
Version <b>7.0.0</b> Development
|
||||
</div>
|
||||
<div class="copyright">
|
||||
Copyright © gempa GmbH, GFZ Potsdam.
|
||||
|
||||
Reference in New Issue
Block a user