aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
Commit message (Collapse)AuthorAgeFilesLines
...
* auto merge of #4048 : mttr/servo/mach_unit_test_fix, r=larsbergstrombors-servo2014-12-221-1/+4
|\ | | | | | | | | | | | | | | This is a quick and dirty workaround for issue #3928. Basically, `cargo test` is deleting `./target/servo`, which is clearly not ideal if we want to do anything with servo after running the unit tests. This PR makes sure to rebuild after running `./mach test-unit`. I'm not familiar enough with cargo yet to know why it's doing this or what better alternatives there are to fixing this. Having to rebuild afterwards feels pretty ugly to me, but my rationalization right now is that the time it takes to build is negligible in comparison to the time it takes to run the tests. Ideally, this should be something we could take care of in Cargo.toml, but again, I'm new to this (and the documentation seems less than helpful from what I can tell so far). I won't be available for the rest of the day, so if anyone has suggestions, or wants to wait for a better solution, I'll get back to it tomorrow probably. Otherwise, this PR at least makes `./mach test` work properly, so there's that.
| * Moved unit tests to the end of `./mach test`Matthew Rasmus2014-12-041-11/+4
| |
| * Rebuild after ./mach test-unitMatthew Rasmus2014-11-201-0/+10
| | | | | | | | (ugly) workaround for issue #3928
* | Fix breakage of `./mach test`Matthew Rasmus2014-12-061-1/+4
| | | | | | | | | | | | | | | | | | | | When running commands through Registrar.dispatch, mach does not behave in the same way it would as if it were running through the command line. Defaults normally provided through a combination of @CommandArgument and argparse magic are ignored. I have some ideas as to how to fix this, but until then, this will allow `./mach test` to run through test-unit properly.
* | auto merge of #4229 : mttr/servo/mach_unit_test_select_component, r=Manishearthbors-servo2014-12-061-10/+15
|\ \ | | | | | | | | | | | | | | | Example usage: `./mach test-unit -c style`
| * | Last second bug catchMatthew Rasmus2014-12-041-1/+1
| | |
| * | Adds a --component (or -c) argument to test-unitMatthew Rasmus2014-12-041-8/+11
| | | | | | | | | | | | | | | | | | Example usage: `./mach test-unit -c style`
| * | PEP8 line length fixes in testing_commands.pyMatthew Rasmus2014-12-041-3/+5
| | | | | | | | | | | | ...so that PyLint stops yelling at me
* | | Mach test inference fixMatthew Rasmus2014-12-041-1/+1
|/ /
* | Don’t try to run unit tests for the servo crate.Simon Sapin2014-12-021-1/+2
| | | | | | | | | | | | | | | | There are none, but the contenttest program fails with: ``` task '<main>' panicked at 'Required option 'source-dir' missing.', ../../tests/contenttest.rs:48 ```
* | Make build system more independent of current directory.Simon Sapin2014-12-021-1/+1
| |
* | Move the servo crate from root to components/servoSimon Sapin2014-12-021-3/+6
| |
* | auto merge of #4169 : IdeaHat/servo/fix-mach-unit-test-filter, r=jdmbors-servo2014-12-021-1/+1
|\ \ | | | | | | | | | | | | | | | Minor change, added unit test filter to components so that ./mach test-unit [test-filter] works in line with documentation. I'd personally like to also make filters on the components as well as the tests. This would change the interface (probably to ./mach test-unit [component-filter] [test-filter]), but change is NOT in this pull request.
| * | Fixed test filterNathan Climer2014-12-011-1/+1
| | |
* | | infer_test_by_dir cleanupMatthew Rasmus2014-12-011-14/+13
|/ / | | | | | | | | No actual change in functionality here. I was just unhappy with the way test-ref was singled out before, and realized an obvious fix.
* | Adds explicit --name argument to test-refMatthew Rasmus2014-11-241-8/+21
| | | | | | | | | | In addition, `./mach test` will now take advantage of this when inferring test suites from test files.
* | Lets `./mach test` infer testsuite from fileMatthew Rasmus2014-11-241-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | Usage Example: ``` $ ./mach test tests/wpt/web-platform-tests/dom/interfaces.html 0:00.27 LOG: MainThread INFO Using 1 client processes ... ``` Note that while there is no functionality for `test-ref` to accept individual files, `./mach test tests/ref` will still trigger `test-ref`.
* | Remove allow_all_args from mach commandsMatthew Rasmus2014-11-231-6/+3
| |
* | Make sure directories aren't getting testedCorey Farwell2014-11-231-6/+6
| |
* | Run a single WPT test from a relative pathMatthew Rasmus2014-11-211-0/+10
|/ | | | Fixes #4055
* Fix up and run unit tests.Jack Moffitt2014-10-021-10/+15
| | | | This adds the subpackages to `./mach test-unit`.
* Fix /python/servo code formatting.Simon Sapin2014-09-261-17/+20
| | | | (My editor screams at me for flake8 lint errors.)
* Make test_wpt params optionalMatt Brubeck2014-09-161-1/+3
| | | | Fixes an exception in `mach test`.
* Add more arguments to mach test commandsMatt Brubeck2014-09-121-9/+36
|
* Refactor python/tidy.py to not use globals. Fixes #3242Duncan Keall2014-09-101-5/+1
|
* Cargoify servoJack Moffitt2014-09-081-0/+122