diff options
author | Stevan Radakovic <stevan.radakovic@linaro.org> | 2012-05-11 16:02:26 +0200 |
---|---|---|
committer | Stevan Radakovic <stevan.radakovic@linaro.org> | 2012-05-11 16:02:26 +0200 |
commit | 5c28bce1dc02c6021d3d10504d3347ec61694acd (patch) | |
tree | 7294389b0ad66cbcae6e7409acb6864b88f2daa3 | |
parent | 1a433dce46eaf8253a697647a9a7fd1384f5e4a5 (diff) |
Add tests to testrepository to run the PHP unit tests automatically
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | testing/LicenseHelperTest.php | 2 | ||||
-rw-r--r-- | testing/__init__.py | 1 |
3 files changed, 3 insertions, 3 deletions
@@ -104,5 +104,4 @@ Recent (as of 2012-05-08) Ubuntu/Debian releases have a broken phpunit package a $ sudo pear install pear.phpunit.de/PHPUnit Then to run the test from the 'testing' directory: - $ cd testing/ - $ phpunit LicenseHelperTest + $ phpunit testing/LicenseHelperTest diff --git a/testing/LicenseHelperTest.php b/testing/LicenseHelperTest.php index f47c672..b7bc855 100644 --- a/testing/LicenseHelperTest.php +++ b/testing/LicenseHelperTest.php @@ -1,6 +1,6 @@ <?php -require_once("../licenses/LicenseHelper.php"); +require_once("licenses/LicenseHelper.php"); class LicenseHelperTest extends PHPUnit_Framework_TestCase { diff --git a/testing/__init__.py b/testing/__init__.py index 3b0984e..a02f6d3 100644 --- a/testing/__init__.py +++ b/testing/__init__.py @@ -8,6 +8,7 @@ def test_suite(): module_names = [ 'testing.test_click_through_license.TestLicense', 'testing.test_publish_to_snapshots.TestSnapshotsPublisher', + 'testing.test_php_unit.PhpUnitTest', ] loader = unittest.TestLoader() suite = loader.loadTestsFromNames(module_names) |