Jetpack/Testing: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 152: Line 152:


<code>cfx testcfx</code> builds a [http://docs.python.org/library/unittest.html#unittest.TestSuite TestSuite] out of all the test cases it finds, then uses [http://docs.python.org/library/unittest.html#unittest.TextTestRunner TestTestRunner] to execute them.
<code>cfx testcfx</code> builds a [http://docs.python.org/library/unittest.html#unittest.TestSuite TestSuite] out of all the test cases it finds, then uses [http://docs.python.org/library/unittest.html#unittest.TextTestRunner TestTestRunner] to execute them.
It also looks for [http://docs.python.org/library/doctest.html DocTests] in the documentation files, and executes any that it finds. But there aren't any, at the moment.
== testex ==
<code>cfx testcfx</code> runs <code>cfx test</code> for all the add-ons which ship with the SDK under the examples/ directory.
== testpkgs ==
<code>cfx testpkgs</code> finds all packages installed under the packages/ directory, and executes <code>cfx test</code> for each package it finds.
== testall ==
<code>cfx testall</code> tests everything: it runs <code>cfx testcfx</code>, <code>cfx testex</code> and <code>cfx testpkgs</code>, in that order.
canmove, Confirmed users
737

edits

Navigation menu