trybuild

Test harness for ui tests of compiler diagnostics

APACHE-2.0 License

Downloads
14M
Stars
784
Committers
22
trybuild -

Published by dtolnay over 1 year ago

  • Normalize paths which refer to rustc's build directory: /rustc/c5c7d2b37780dac1092e75f12ab97dd56c30861d/library/core/src/fmt/mod.rs:786:1 (#224, thanks @schreter)
trybuild -

Published by dtolnay over 1 year ago

trybuild -

Published by dtolnay almost 2 years ago

  • Use subdirectory within target/tests/ (#219, thanks @ijackson)
trybuild -

Published by dtolnay almost 2 years ago

trybuild -

Published by dtolnay almost 2 years ago

  • Normalize "full type name" notes (#213, thanks @compiler-errors)
trybuild -

Published by dtolnay almost 2 years ago

  • Documentation improvements
trybuild -

Published by dtolnay almost 2 years ago

  • Fix a warning when using trybuild from a test-only Cargo package, i.e. without a library target (#208)
trybuild -

Published by dtolnay about 2 years ago

  • Fix some cases where unusual compiler output could cause trybuild's normalization heuristic to crash
trybuild -

Published by dtolnay about 2 years ago

  • Normalize "and $N others" in "the following other types implement trait" error messages (#198, thanks @mejrs)
trybuild -

Published by dtolnay about 2 years ago

  • Fix handling of "dep:" dependencies when referring to a target-dependent dependency in cargo's [target.'cfg(…)'.dependencies] syntax (#197)
trybuild -

Published by dtolnay about 2 years ago

  • Fix build error when a crate feature and an optional dependency and a non-optional dev-dependency all 3 have the same name (#196)
trybuild -

Published by dtolnay about 2 years ago

  • Fix "optional dependency is not included in any features" error when using cargo 1.60.0's "namespaced features" syntax (#171)
trybuild -

Published by dtolnay about 2 years ago

  • Normalize left margin of error output (#194)
trybuild -

Published by dtolnay about 2 years ago

trybuild -

Published by dtolnay about 2 years ago

  • Add categories and keywords to crates.io metadata
trybuild -

Published by dtolnay over 2 years ago

  • Allow later globs to override pass/fail status of earlier globs (#174)

    t.compile_fail("tests/ui/*.rs");
    t.pass("tests/ui/ok.rs");
    

    This will test tests/ui/ok.rs expecting it to pass, and all the rest of the contents of tests/ui expecting them to fail. Previous versions of trybuild would test tests/ui/ok.rs expecting it to fail and again expecting it to pass, which can't both be true.

trybuild -

Published by dtolnay over 2 years ago

  • Support directly running a trybuild integration test binary without going through cargo test (#14)
trybuild -

Published by dtolnay over 2 years ago

  • Turn warning on missing stderr file into error (#169)
trybuild -

Published by dtolnay over 2 years ago

  • Greatly reduce test execution time by compiling test cases in parallel on toolchains which support https://github.com/rust-lang/cargo/issues/10496. Example from the serde crate's test suite, which becomes 16x faster on my machine:

    Before:

    $ time cargo test --test compiletest
    real	0m21.442s
    user	0m15.288s
    sys	0m6.317s
    

    After:

    $ time cargo test --test compiletest
    real	0m1.290s
    user	0m20.761s
    sys	0m6.962s
    
trybuild -

Published by dtolnay over 2 years ago

  • Avoid warning inside generated code in projects which run their test suite with deny(unused_crate_dependencies) or deny(missing_docs) (#161, thanks @bearcage)