-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wojciech Polak
committed
Sep 27, 2019
1 parent
13e03c7
commit 4155fbe
Showing
7 changed files
with
104 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
language: rust | ||
rust: | ||
- nightly | ||
- nightly | ||
- stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Changelog | ||
|
||
## 0.3.0 | ||
### Breaking changes | ||
* Crate has new maintainer: Wojciech Polak :hand: :tada: | ||
* Crate has new name, as `test-case-derive` had no meaning for `derive` part. | ||
* Delimiter for test case description is `;` instead of `::`. | ||
|
||
Reason: `::` is valid part of expression and rustc treats const variable as path | ||
### New features | ||
* Upgraded syn, quote and proc-macro-2 to v1 | ||
* Proper error propagation :tada: | ||
When there is for example a typo in function body, rustc can now show location | ||
of it instead of test_case location. | ||
* Internally for tests crate uses `cargo insta` for snapshot testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[![Crates.io](https://img.shields.io/crates/v/test-case.svg)](https://crates.io/crates/test-case) | ||
[![Docs.rs](https://docs.rs/test-case/badge.svg)](https://docs.rs/test-case/badge.svg) | ||
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/rust-lang/docs.rs/master/LICENSE) | ||
{{badges}} | ||
|
||
# Test Case | ||
|
||
{{readme}} | ||
|
||
## License | ||
|
||
Licensed under of MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT) | ||
|
||
### Contribution | ||
|
||
All contributions and comments are more than welcome! Don't be afraid to open an issue or PR whenever you find a bug or have an idea to improve this crate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use std::process::exit; | ||
|
||
fn main() { | ||
match version_check::is_min_version("1.29") { | ||
Some((true, _)) => {} | ||
_ => { | ||
// rustc version too small or can't figure it out | ||
eprintln!("rustc>=1.29 is required due to feature(proc_macro) stabilitation"); | ||
exit(1); | ||
} | ||
} | ||
} |
Oops, something went wrong.