Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make `mach test-unit` not recompile components after `mach build` #21884

Merged
merged 1 commit into from Oct 7, 2018

Commits on Oct 7, 2018

  1. 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`.
    SimonSapin committed Oct 7, 2018
You can’t perform that action at this time.