Skip to content

Commit fba9d65

Browse files
committed
Publish v2.1.0
1 parent 8e7ff35 commit fba9d65

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 2.1.0
4+
### New features
5+
* Support `matches_regex` complex test-case (requires `with-regex` feature) (#98)
6+
* Support `len`, `count` and `empty` complex test-cases (#97)
7+
8+
### Bug fixes
9+
* Support keyword `ignore` on void fn (#100)
10+
11+
### Improvements
12+
* Move macros to separate subcrate so that test-case can export other things (#96)
13+
314
## 2.0.2
415
### Bug fixes
516
* Covered missing cases in `matches X if Y` *test_case* variant (fixes the fact that previous bug fix didn't produce guard code)

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "test-case"
3-
version = "2.0.2"
3+
version = "2.1.0"
44
edition = "2018"
55
authors = ["Marcin Sas-Szymanski <marcin.sas-szymanski@anixe.pl>", "Wojciech Polak <frondeus@gmail.com>", "Łukasz Biel <lukasz.p.biel@gmail.com>"]
66
description = "Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
@@ -23,7 +23,7 @@ doctest = false
2323
path = "src/lib.rs"
2424

2525
[dependencies]
26-
test-case-macros = { path = "crates/test-case-macros", default-features = false }
26+
test-case-macros = { version = "2.1.0", path = "crates/test-case-macros", default-features = false }
2727
regex = { version = "1.5", optional = true }
2828

2929
[dev-dependencies]

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Crate has to be added as a dependency to `Cargo.toml`:
1717

1818
```toml
1919
[dev-dependencies]
20-
test-case = "2.0.2"
20+
test-case = "2.1.0"
2121
```
2222

2323
and imported to the scope of a block where it's being called
@@ -62,7 +62,6 @@ test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
6262

6363
Most up to date documentation is available in our [wiki](https://github.com/frondeus/test-case/wiki).
6464

65-
6665
# License
6766

6867
Licensed under of MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)

crates/test-case-macros/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "test-case-macros"
3-
version = "2.0.2"
3+
version = "2.1.0"
44
edition = "2018"
55
authors = ["Marcin Sas-Szymanski <marcin.sas-szymanski@anixe.pl>", "Wojciech Polak <frondeus@gmail.com>", "Łukasz Biel <lukasz.p.biel@gmail.com>"]
66
description = "Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
77
keywords = ["test", "case", "tests", "unit", "testing"]
88
categories = ["development-tools", "development-tools::testing"]
9-
readme = "README.md"
9+
readme = "../../README.md"
1010
license = "MIT"
1111
repository = "https://github.com/frondeus/test-case"
1212
documentation = "https://docs.rs/test-case"

scripts/publish.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@ set -eo xtrace
1111
./scripts/test_all.sh
1212

1313
nvim Cargo.toml
14+
nvim crates/test-case-macros/Cargo.toml
1415
cargo build
1516

1617
nvim CHANGELOG.md
1718
nvim src/lib.rs
1819

1920
cargo readme > README.md
2021

21-
cargo publish --dry-run --allow-dirty
22+
cargo publish -p test-case-macros --dry-run --allow-dirty
23+
cargo publish -p test-case --dry-run --allow-dirty
2224

2325
git add .
2426
git commit
2527
git push origin
2628

2729
set +o xtrace
2830

29-
echo "Next step: Wait for CI\n"
30-
echo "Next step: \`git tag vX.Y.Z; git push --tags\`\n"
31-
echo "Next step: Create release in Github\n"
31+
echo "Next step: Wait for CI"
32+
echo "Next step: \`git tag vX.Y.Z; git push --tags\`"
33+
echo "Next step: Create release in Github"
3234
echo "Next step: \`cargo publish\`"
3335

3436
cd "${CURRENT_DIR}"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//!
88
//! ```toml
99
//! [dev-dependencies]
10-
//! test-case = "2.0.2"
10+
//! test-case = "2.1.0"
1111
//! ```
1212
//!
1313
//! and imported to the scope of a block where it's being called

0 commit comments

Comments
 (0)