aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Avoid UnboundLocalError upon "bogus" usage of ./mach create-wptSimon Martin2015-11-081-1/+2
|/
* Add create-wpt mach target to help with creating web-platform-testsJames Graham2015-10-201-3/+154
|
* Auto merge of #7813 - servo:parallel-unit-tests, r=mbrubeckbors-servo2015-10-011-5/+6
|\ | | | | | | | | | | | | | | | | | | | | | | Run all unit tests with just one Cargo command. Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies. `touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7813) <!-- Reviewable:end -->
| * Run all unit tests with just one Cargo command.Simon Sapin2015-10-011-5/+6
| | | | | | | | | | | | | | | | | | | | Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies. `touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124.
* | Fixes for `mach test-ref` argument handlingMatt Brubeck2015-10-011-13/+13
|/ | | | | | | * Change parameter from `name` to `include`. This is consistent with other test suites, and also fixes a bug in `mach test` caused by a conflicting keyword parameter in `Registrar.dispatch`. * Allow any number of `include` arguments.
* Auto merge of #7809 - 6112:master, r=frewsxcvbors-servo2015-09-301-5/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `./mach test` work with unit tests Fixes #7618. Allows running a specific Rust test with one of: ``` ./mach test tests/unit/net/http_loader.rs ./mach test-unit tests/unit/net/http_loader.rs ./mach test-unit tests/unit/net/http_loader ./mach test-unit net/http_loader ``` Allows running a whole package's tests with one of: ``` ./mach test tests/unit/net ./mach test-unit tests/unit/net ``` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7809) <!-- Reviewable:end -->
| * Allow `./mach test` and `./mach test-unit` to run unit tests with file pathNicolas2015-09-301-5/+30
| |
* | Auto merge of #7789 - 6112:master, r=mbrubeckbors-servo2015-09-291-4/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allow `./mach test` to run tests in tests/wpt/mozilla/ Allows running WPT tests in the tests/wpt/mozilla/ directory by using commands such as: ``` ./mach test tests/wpt/mozilla/tests/mozilla/union.html ``` Fixes #7772. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7789) <!-- Reviewable:end -->
| * allow `./mach test` to run tests in tests/wpt/mozilla/Nicolas2015-09-291-4/+5
| |
* | fix issue#6888Jaydeep2015-09-271-0/+56
|/
* Remove obsolete method call that breaks ./mach update-css.Josh Matthews2015-09-031-1/+0
|
* Revert "Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for ↵Corey Farwell2015-09-021-45/+0
| | | | | | breaking web-platform-tests." This reverts commit 47d6d958f58f5011742a18abcdd5a76bf4390966.
* fixes test-wpt cannot be run from anywhere but the rootwilmoz2015-08-111-5/+7
|
* Allow Servo tests to be built/run with --release modeCorey Farwell2015-08-101-10/+15
| | | | Fixes #5075
* 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