aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking ↵Ms2ger2015-08-091-0/+43
| | | | | | | web-platform-tests. This reverts commit c315404db80c92a695531b0aa4bcf61c125a3bff, reversing changes made to b00583bd4e7169a6b952633df718268904f2bd0c.
* Use one Python virtual environment for all mach commandsCorey Farwell2015-08-081-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit: * Our Python dependency story was a bit of a mess. We had complete Python packages (wheels and directories) living in-tree, despite not having any changes from upstream. This is particularly bad because `setup.py` never gets run on these packages which could (sometimes silently) unintended breakage. * Python virtual environments (virtualenv) were only utilized for testing web-platform tests After this commit: * A single virtualenv (`python/_virtualenv`) is activated upon *every* call to mach * A requirements file (`python/requirements.txt`) is added to describe the dependencies needed by Python modules in `python/`. The child commit immediately following this will remove all the dependencies no longer needed in-tree (for the sake of keeping this commit readable). Relevant to https://github.com/servo/servo/issues/861 Fixes https://github.com/servo/servo/issues/6999
* test-tidy fixes.Michael Howell2015-07-311-1/+0
|
* UI cheeze.Michael Howell2015-07-311-4/+6
|
* Integrate dromaeo with mach.Michael Howell2015-07-311-0/+36
|
* Update WPT test expectations for --release buildsMatt Brubeck2015-07-231-0/+2
|
* Improve |mach test|.James Graham2015-07-011-40/+51
| | | | | | Make mach test work with wpt tests. Allow specifying specific testsuites on the command line Allow specifying paths to CSS tests on the command line
* Auto merge of #6306 - metajack:shared-target-dir, r=mbrubeckbors-servo2015-06-151-3/+2
|\ | | | | | | | | | | | | | | | | | | This speeds up `./mach build --dev` followed by `./mach build-cef` by 25%. When rust-lang/cargo#497 is fixed, this speedup will increase dramatically. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6306) <!-- Reviewable:end -->
| * Use Cargo's target directory sharing.Jack Moffitt2015-06-151-3/+2
| | | | | | | | | | This speeds up `./mach build --dev` followed by `./mach build-cef` by a large amount, and also speeds up other build combos found in our CI.
* | Set 'mach test-ref' default render mode to cpu and added a cli argument to ↵Francesc Bautista2015-06-131-7/+22
|/ | | | 'mach test' to be able to select the render-mode.
* Add flake8 to the tidy process for Python filesCorey Farwell2015-06-041-4/+3
| | | | | | | Fixes #6236 Also included in this commit are the changes need to make flake8 pass for the existing python file
* Pass release/dev arguments to command function for jQuery updateCorey Farwell2015-06-031-1/+1
|
* Fix tidy issues with Python files in python/Corey Farwell2015-06-021-0/+9
|
* Add jQuery test runner and mach integration.Glenn Watson2015-06-011-0/+41
|
* Fix up the splitting of the unit tests crate.Simon Sapin2015-04-211-5/+13
| | | | | Closes #5707. (Includes a rebase of it.) Fixes #5688.
* Split up the unit tests cratePrabhjyot Singh Sodhi2015-04-211-2/+3
|
* Remove the remaining traces of content tests.Ms2ger2015-04-161-19/+5
|
* Have `./mach test-unit` run nothing but `cargo test -p unit_tests`Simon Sapin2015-04-081-24/+3
| | | | | | | All unit tests will move there, and it should be much faster to build than every other crate together. Fix #5291.
* `mach test-unit -p` should not build all testsMatt Brubeck2015-04-061-8/+6
| | | | | This changes the `mach test-unit -p foo` command to build only the requested crate, not the entire `servo` crate.
* Change `mach test-unit` parameter from `-c` to `-p`Matt Brubeck2015-04-061-4/+12
| | | | | | For consistency with Cargo params, and related mach commands like `mach update-cargo`. The `-c` version is still available as an alias for compatibility with old scripts.
* Better check that required modules are installedJames Graham2015-04-031-0/+5
|
* Add support for running W3C CSS tests.James Graham2015-04-031-1/+28
| | | | These are run through the same harness as the web-platform-tests.
* Make the test-wpt mach command support all the command line arguments of ↵James Graham2015-04-031-26/+61
| | | | | | wptrunner. Also remove the shell script and ensure that default options are set in a single location
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-2/+2
|
* Update web-platform-tests.Ms2ger2015-03-171-0/+1
|
* auto merge of #5210 : GreenRecycleBin/servo/#4968, r=jdmbors-servo2015-03-161-3/+4
|\ | | | | | | `./mach test tests/wpt/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm` is still failing with the same message as reported in #3219.
| * Add HOST_FILE environment variable for test-wptDaniel Le2015-03-141-3/+4
| |
* | tests: ensure bootstrapping for wptAndreas Tolfsen2015-03-151-0/+3
|/
* auto merge of #5053 : deepak1556/servo/script_patch, r=jdmbors-servo2015-02-281-4/+11
|\ | | | | | | fixes #5046
| * default to number of available cpu for wpt-testsRobo2015-02-281-4/+11
| |
* | Remove outdated warning from test-unitdhneio2015-02-241-3/+0
|/
* fixes issue #4103awlnx2015-02-181-2/+4
|
* Add a test that wptrunner fails when it should.Ms2ger2014-12-231-0/+11
|
* 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`.