Skip to content

Commit

Permalink
Execute trybuild tests only on stable
Browse files Browse the repository at this point in the history
See the comment for the reasoning
  • Loading branch information
Veetaha committed Sep 11, 2020
1 parent a9022b3 commit ba4d54a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dynomite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ serde_json = "1.0"
tokio = { version = "0.2", features = ["macros"] }
lambda_http = { git = "https://github.com/awslabs/aws-lambda-rust-runtime/", branch = "master"}
trybuild = "1.0"
rustversion = "1.0"
dynomite-derive = { version = "0.10.0", path = "../dynomite-derive" } # required by trybuild

[features]
Expand Down
4 changes: 4 additions & 0 deletions dynomite/tests/try_build_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//! Provides an error message testing framework using https://github.com/dtolnay/trybuild
//! See `dynomite/trybuild-tests/readme.md` for instructions on how to add more tests.

// Try-build tests are run only on stable version of the toolchain. This is because
// error messages in `rustc` change frequent enough to break the tests on beta or nightly
// jobs.
#[rustversion::stable]
#[test]
fn try_build_tests() {
let t = trybuild::TestCases::new();
Expand Down

0 comments on commit ba4d54a

Please sign in to comment.