servo/tests/unit
Simon Sapin 1f7ebfc8a2 Make mach test-unit not recompile components after mach build
Previously, the `tests` feature flag of the `embedder_traits` crate
caused it and every crate recursively depending on it to be built twice.

This feature flag was used to provide a specific set of "resources"
when running tests. Instead, this commits overrides the `main()` function
of the test harness to change resources at runtime before running any test.

This is done by adding a dependency that has `name = "test"` in its
`[lib]` section of `Cargo.toml`. This overrides the crate found by
`extern crate test;` in code generated by `rustc --test`.
2018-10-07 13:27:23 +02:00
..
deny_public_fields Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
malloc_size_of Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
metrics Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
profile Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
script WR update 2018-08-06 07:22:24 +02:00
script_plugins Replace compiletest suite by doc-tests with compile_fail 2017-11-22 16:25:17 +01:00
style Make mach test-unit not recompile components after mach build 2018-10-07 13:27:23 +02:00