Pull requests

#124 Merged
Repository
techtonik techtonik
Branch
default
Repository
scons scons
Branch
default

New configurable test runner for unittests

Author
  1. anatoly techtonik
Reviewers
Description

https://drone.io/bitbucket.org/techtonik/scons/31 - without --runner

https://drone.io/bitbucket.org/techtonik/scons/32 - with --runner

This allow more fine-grained control over the test results and prepares room for further runner enhancements,

Comments (6)

  1. Gary Oberbrunner

    I get where you're going with this, and it makes sense. But it now gives an error when I pass a test file as an arg:

    % python runtest.py src/engine/SCons/Tool/msvsTests.py
    1/1 (100.00%) C:\\Python27\\python.exe -tt src/engine/SCons/Tool/msvsTests.py
    TEST:  Test MSVS 6 Registry
    Traceback (most recent call last):
      File "src/engine/SCons/Tool/msvsTests.py", line 764, in <module>
        if not TestUnit.cli.get_runner().run(suite).wasSuccessful():
    TypeError: unbound method run() must be called with TextTestRunner instance as first argument (got TestSuite instance instead)