Commit graph

179 commits

Author SHA1 Message Date
dhneio
4b9267bd58 Remove outdated warning from test-unit 2015-02-24 08:06:57 -08:00
awlnx
d8f1c10179 fixes issue #4103 2015-02-18 18:11:22 -05:00
Ms2ger
a2521c7e01 Add a test that wptrunner fails when it should. 2014-12-23 11:22:10 +01:00
bors-servo
f06e0a818d auto merge of #4048 : mttr/servo/mach_unit_test_fix, r=larsbergstrom
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.
2014-12-22 14:05:34 -07:00
Matthew Rasmus
2bdf84d5f7 Fix breakage of ./mach test
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.
2014-12-06 09:23:10 -08:00
bors-servo
2d0e96e133 auto merge of #4229 : mttr/servo/mach_unit_test_select_component, r=Manishearth
Example usage:

`./mach test-unit -c style`
2014-12-06 04:49:00 -07:00
Matthew Rasmus
fd5d4fffd7 Mach test inference fix 2014-12-04 16:55:01 -08:00
Matthew Rasmus
19d119785c Last second bug catch 2014-12-04 16:19:56 -08:00
Matthew Rasmus
0aa6d9c28e Adds a --component (or -c) argument to test-unit
Example usage:

`./mach test-unit -c style`
2014-12-04 16:16:15 -08:00
Matthew Rasmus
3d5fa7b6e2 PEP8 line length fixes in testing_commands.py
...so that PyLint stops yelling at me
2014-12-04 16:12:22 -08:00
Matthew Rasmus
f69dfc53cb Moved unit tests to the end of ./mach test 2014-12-04 14:05:46 -08:00
Simon Sapin
9bbc633ced Don’t try to run unit tests for the servo crate.
There are none, but the contenttest program fails with:

```
task '<main>' panicked at 'Required option 'source-dir' missing.', ../../tests/contenttest.rs:48
```
2014-12-02 18:04:06 -08:00
Simon Sapin
cc4ea7507f Make build system more independent of current directory. 2014-12-02 18:04:06 -08:00
Simon Sapin
2f413c8937 Move the servo crate from root to components/servo 2014-12-02 18:03:39 -08:00
bors-servo
c91e949ed0 auto merge of #4169 : IdeaHat/servo/fix-mach-unit-test-filter, r=jdm
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.
2014-12-02 18:15:51 -07:00
Nathan Climer
2dc0b8973d Fixed test filter 2014-12-01 16:49:04 -05:00
Matthew Rasmus
3a6b6792ae infer_test_by_dir cleanup
No actual change in functionality here. I was just unhappy with the way
test-ref was singled out before, and realized an obvious fix.
2014-12-01 12:51:49 -08:00
Matthew Rasmus
27a9460d52 Adds explicit --name argument to test-ref
In addition, `./mach test` will now take advantage of this when
inferring test suites from test files.
2014-11-24 16:26:56 -08:00
Matthew Rasmus
8f4f6407d4 Lets ./mach test infer testsuite from file
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`.
2014-11-24 12:01:21 -08:00
Matthew Rasmus
8cb7a6842f Remove allow_all_args from mach commands 2014-11-23 16:45:40 -08:00
Corey Farwell
cb38675f48 Make sure directories aren't getting tested 2014-11-23 13:13:53 -05:00
Matthew Rasmus
655dd453bd Run a single WPT test from a relative path
Fixes #4055
2014-11-21 13:52:18 -08:00
Matthew Rasmus
465546ee08 Rebuild after ./mach test-unit
(ugly) workaround for issue #3928
2014-11-20 11:10:47 -08:00
Jack Moffitt
7f6f072b02 Fix up and run unit tests.
This adds the subpackages to `./mach test-unit`.
2014-10-02 23:14:42 -06:00
Simon Sapin
cd45258bf3 Fix /python/servo code formatting.
(My editor screams at me for flake8 lint errors.)
2014-09-26 23:12:51 +01:00
Matt Brubeck
4154d3291b Make test_wpt params optional
Fixes an exception in `mach test`.
2014-09-16 09:38:22 -07:00
Matt Brubeck
e6b31a616f Add more arguments to mach test commands 2014-09-12 21:57:07 -07:00
Duncan Keall
6c48066565 Refactor python/tidy.py to not use globals. Fixes #3242 2014-09-10 10:01:46 +12:00
Jack Moffitt
c6ab60dbfc Cargoify servo 2014-09-08 20:21:42 -06:00