lp:~mgiuca/mars/fast-testing

Created by Matt Giuca and last modified

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
Only Matt Giuca can upload to this branch. If you are Matt Giuca please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Matt Giuca
Project:
Mars
Status:
Merged

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.

1095. By Matt Giuca

test: Removed 'backend' argument from run_mars.

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.

1093. By Matt Giuca

test: do_test_real: Moved compilation down to after input dict is parsed.

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)
This branch contains Public information 
Everyone can see this information.

Subscribers