lp:~mgiuca/mars/fast-testing
Reworking the Mars Test Framework (MTF) to run all tests in a module in a single session, which should give much better performance (bug #589000).
- Get this branch:
- bzr branch lp:~mgiuca/mars/fast-testing
Branch merges
Related bugs
Bug #589000: Test framework re-compiles for each test case | High | Fix Released |
Related blueprints
Branch information
Recent revisions
- 1100. By Matt Giuca
-
doc/testing: Added a note about supplying the right amount of input or crashing MTF.
- 1099. By Matt Giuca
-
test: Removed run_mars. All calls to run_mars replaced with calls to MarsSession.
send_command, which send interactive commands to an active session.
This *should* not break any tests (though there are a number of caveats to be documented). It just makes the test suite *insanely fast* because it no longer re-compiles for every test case; just once for each module. - 1098. By Matt Giuca
-
test case name: Removed (commented) end-of-file on stdin test -- the new test framework will not be able to handle sending end-of-file on stdin.
- 1097. By Matt Giuca
-
test: Don't attempt to run unit tests if compilation failed or was expected to (previously would at least run ':ta' command which would fail again).
- 1096. By Matt Giuca
-
test: Removed returncode part of the return tuple from run_mars (was unused, and doesn't make sense if the call to run_mars isn't a separate child process.
- 1094. By Matt Giuca
-
Testing Framework: 'environ' is now a property of the 'compile' object, not
individual 'run' objects. This means it is no longer possible to supply
separate environments per test, only per module.
Updated documentation.
This was done to allow all test cases to be run in a single process, rather
than having a separate compilation call for each test case.
test_builtins: Moved environment from runtime_test_get_ env case out to the
compile object for the entire module. - 1092. By Matt Giuca
-
Test: test_builtins: runtime_
test_get_ env now accepts an argument for the var to look up; the 'missing' case tests MARS_MISSING_ ENV_VAR instead of MARS_TEST_ENV_VAR.
(Soon it won't be possible to have a variable present in one case, missing in another, so choose a different name.) - 1091. By Matt Giuca
-
test/marssession: MarsSession.
send_command now takes an additional stdin argument.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 with rich root (needs bzr 1.0)