diff options
author | Stevan Radakovic <stevan.radakovic@linaro.org> | 2012-05-17 15:39:05 +0200 |
---|---|---|
committer | Stevan Radakovic <stevan.radakovic@linaro.org> | 2012-05-17 15:39:05 +0200 |
commit | 730b0526529e46dbffa4ae53232a37dc44ee2e61 (patch) | |
tree | 6570a34788e8737e32597547093753f49b51daaa | |
parent | 9917739d94d0f7b74032a5e1738e6f8bb75f7dda (diff) | |
parent | a9cef5c1fb4515c50ebe7427fc890b2c47c22ee2 (diff) |
Renamed directory with doctests for the new production test plan. Also separated production test plans from regular integration and unit tests. Reviewed by danilo.
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | testing/__init__.py | 6 | ||||
-rw-r--r-- | testplans/__init__.py | 12 | ||||
-rw-r--r-- | testplans/releases.txt (renamed from docs/releases.txt) | 0 | ||||
-rw-r--r-- | testplans/snapshots.txt (renamed from docs/snapshots.txt) | 0 |
5 files changed, 18 insertions, 6 deletions
@@ -90,6 +90,12 @@ Python and Apache2: $ testr init $ testr run +To run the production test plans (NOTE: They will take a bit more time to run) +execute the following: + + $ testr init + $ testr run testplans.test_suite + Tests for PHP license-matching logic .................................... diff --git a/testing/__init__.py b/testing/__init__.py index c0c24ee..ff8b7ce 100644 --- a/testing/__init__.py +++ b/testing/__init__.py @@ -1,6 +1,5 @@ import os import unittest -import doctest from testing.test_click_through_license import * from testing.test_publish_to_snapshots import * @@ -14,9 +13,4 @@ def test_suite(): ] loader = unittest.TestLoader() suite = loader.loadTestsFromNames(module_names) - for filename in os.listdir("docs/"): - suite.addTest(doctest.DocFileSuite( - 'docs/' + filename, module_relative=False, - optionflags=doctest.ELLIPSIS) - ) return suite diff --git a/testplans/__init__.py b/testplans/__init__.py new file mode 100644 index 0000000..4a85837 --- /dev/null +++ b/testplans/__init__.py @@ -0,0 +1,12 @@ +import os +import unittest +import doctest + +def test_suite(): + suite = unittest.TestSuite() + for filename in os.listdir("testplans/"): + suite.addTest(doctest.DocFileSuite( + 'testplans/' + filename, module_relative=False, + optionflags=doctest.ELLIPSIS) + ) + return suite diff --git a/docs/releases.txt b/testplans/releases.txt index c1db01f..c1db01f 100644 --- a/docs/releases.txt +++ b/testplans/releases.txt diff --git a/docs/snapshots.txt b/testplans/snapshots.txt index 12495f3..12495f3 100644 --- a/docs/snapshots.txt +++ b/testplans/snapshots.txt |