test.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>test package &#8212; Python(P)DEVS-BBL documentation</title>
  8. <link rel="stylesheet" href="_static/nature.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/custom.css" />
  11. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  12. <script type="text/javascript" src="_static/jquery.js"></script>
  13. <script type="text/javascript" src="_static/underscore.js"></script>
  14. <script type="text/javascript" src="_static/doctools.js"></script>
  15. <script type="text/javascript" src="_static/language_data.js"></script>
  16. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="next" title="test.extra package" href="test.extra.html" />
  20. <link rel="prev" title="pypdevsbbl.tracers.StatisticsTracer module" href="pypdevsbbl.tracers.StatisticsTracer.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="test.extra.html" title="test.extra package"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="pypdevsbbl.tracers.StatisticsTracer.html" title="pypdevsbbl.tracers.StatisticsTracer module"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  38. </ul>
  39. </div>
  40. <div class="document">
  41. <div class="documentwrapper">
  42. <div class="bodywrapper">
  43. <div class="body" role="main">
  44. <div class="section" id="module-test">
  45. <span id="test-package"></span><h1>test package<a class="headerlink" href="#module-test" title="Permalink to this headline">¶</a></h1>
  46. <p>Tests for <code class="docutils literal notranslate"><span class="pre">Python(P)DEVS-BBL</span></code>.</p>
  47. <p>Execute this file to accurately set the pythonpath and run the tests.
  48. By default, the <code class="docutils literal notranslate"><span class="pre">dependencies</span></code> directory is ignored and verbosity
  49. is enabled. Pass additional <code class="docutils literal notranslate"><span class="pre">pytest</span></code> arguments to run the tests you
  50. require.</p>
  51. <div class="admonition note">
  52. <p class="first admonition-title">Note</p>
  53. <p>The <a class="reference internal" href="test.extra.test_mathutils.html#module-test.extra.test_mathutils" title="test.extra.test_mathutils"><code class="xref py py-mod docutils literal notranslate"><span class="pre">test.extra.test_mathutils</span></code></a> module takes a while to
  54. execute. See its documentation for more details.</p>
  55. <p class="last">Likewise, the tests in the <a class="reference internal" href="test.extra.test_distributions.html#module-test.extra.test_distributions" title="test.extra.test_distributions"><code class="xref py py-mod docutils literal notranslate"><span class="pre">test.extra.test_distributions</span></code></a> may
  56. take slightly longer than expected. Especially the tests for the
  57. <cite>binomial</cite>, <cite>pearson6</cite>, <cite>johnsonU</cite>, <cite>johnsonB</cite> and <cite>negbinomial</cite>
  58. distributions. This is mainly due to a large amount of parameters
  59. that’s being tested.</p>
  60. </div>
  61. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># To execute only the &#39;fast&#39; tests of the generic package</span>
  62. <span class="c1"># Execute from the &#39;src/test&#39; folder.</span>
  63. python3 __init__.py --ignore<span class="o">=</span>extra/test_mathutils.py --ignore<span class="o">=</span>extra/test_distributions.py .
  64. </pre></div>
  65. </div>
  66. <div class="section" id="subpackages">
  67. <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
  68. <div class="toctree-wrapper compound">
  69. <ul>
  70. <li class="toctree-l1"><a class="reference internal" href="test.extra.html">test.extra package</a><ul>
  71. <li class="toctree-l2"><a class="reference internal" href="test.extra.html#submodules">Submodules</a><ul>
  72. <li class="toctree-l3"><a class="reference internal" href="test.extra.test_distributions.html">test.extra.test_distributions module</a></li>
  73. <li class="toctree-l3"><a class="reference internal" href="test.extra.test_fileutils.html">test.extra.test_fileutils module</a></li>
  74. <li class="toctree-l3"><a class="reference internal" href="test.extra.test_heap.html">test.extra.test_heap module</a></li>
  75. <li class="toctree-l3"><a class="reference internal" href="test.extra.test_mathutils.html">test.extra.test_mathutils module</a></li>
  76. <li class="toctree-l3"><a class="reference internal" href="test.extra.test_packaging.html">test.extra.test_packaging module</a></li>
  77. </ul>
  78. </li>
  79. </ul>
  80. </li>
  81. <li class="toctree-l1"><a class="reference internal" href="test.generic.html">test.generic package</a><ul>
  82. <li class="toctree-l2"><a class="reference internal" href="test.generic.html#submodules">Submodules</a><ul>
  83. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_collectors.html">test.generic.test_collectors module</a></li>
  84. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_generators.html">test.generic.test_generators module</a></li>
  85. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_io.html">test.generic.test_io module</a></li>
  86. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_math.html">test.generic.test_math module</a></li>
  87. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_queues.html">test.generic.test_queues module</a></li>
  88. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_routing.html">test.generic.test_routing module</a></li>
  89. <li class="toctree-l3"><a class="reference internal" href="test.generic.test_transformers.html">test.generic.test_transformers module</a></li>
  90. </ul>
  91. </li>
  92. </ul>
  93. </li>
  94. </ul>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  102. <div class="sphinxsidebarwrapper">
  103. <h4>Previous topic</h4>
  104. <p class="topless"><a href="pypdevsbbl.tracers.StatisticsTracer.html"
  105. title="previous chapter">pypdevsbbl.tracers.StatisticsTracer module</a></p>
  106. <h4>Next topic</h4>
  107. <p class="topless"><a href="test.extra.html"
  108. title="next chapter">test.extra package</a></p>
  109. <div id="searchbox" style="display: none" role="search">
  110. <h3>Quick search</h3>
  111. <div class="searchformwrapper">
  112. <form class="search" action="search.html" method="get">
  113. <input type="text" name="q" />
  114. <input type="submit" value="Go" />
  115. <input type="hidden" name="check_keywords" value="yes" />
  116. <input type="hidden" name="area" value="default" />
  117. </form>
  118. </div>
  119. </div>
  120. <script type="text/javascript">$('#searchbox').show(0);</script>
  121. </div>
  122. </div>
  123. <div class="clearer"></div>
  124. </div>
  125. <div class="related" role="navigation" aria-label="related navigation">
  126. <h3>Navigation</h3>
  127. <ul>
  128. <li class="right" style="margin-right: 10px">
  129. <a href="genindex.html" title="General Index"
  130. >index</a></li>
  131. <li class="right" >
  132. <a href="py-modindex.html" title="Python Module Index"
  133. >modules</a> |</li>
  134. <li class="right" >
  135. <a href="test.extra.html" title="test.extra package"
  136. >next</a> |</li>
  137. <li class="right" >
  138. <a href="pypdevsbbl.tracers.StatisticsTracer.html" title="pypdevsbbl.tracers.StatisticsTracer module"
  139. >previous</a> |</li>
  140. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  141. </ul>
  142. </div>
  143. <div class="footer" role="contentinfo">
  144. &#169; Copyright 2020, Randy Paredis.
  145. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  146. </div>
  147. </body>
  148. </html>