Skip to content

Commit

Permalink
Publish v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-biel committed May 18, 2022
1 parent 8e7ff35 commit fba9d65
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 2.1.0
### New features
* Support `matches_regex` complex test-case (requires `with-regex` feature) (#98)
* Support `len`, `count` and `empty` complex test-cases (#97)

### Bug fixes
* Support keyword `ignore` on void fn (#100)

### Improvements
* Move macros to separate subcrate so that test-case can export other things (#96)

## 2.0.2
### Bug fixes
* Covered missing cases in `matches X if Y` *test_case* variant (fixes the fact that previous bug fix didn't produce guard code)
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test-case"
version = "2.0.2"
version = "2.1.0"
edition = "2018"
authors = ["Marcin Sas-Szymanski <[email protected]>", "Wojciech Polak <[email protected]>", "Łukasz Biel <[email protected]>"]
description = "Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
Expand All @@ -23,7 +23,7 @@ doctest = false
path = "src/lib.rs"

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

[dev-dependencies]
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Crate has to be added as a dependency to `Cargo.toml`:

```toml
[dev-dependencies]
test-case = "2.0.2"
test-case = "2.1.0"
```

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

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


# License

Licensed under of MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
Expand Down
4 changes: 2 additions & 2 deletions crates/test-case-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "test-case-macros"
version = "2.0.2"
version = "2.1.0"
edition = "2018"
authors = ["Marcin Sas-Szymanski <[email protected]>", "Wojciech Polak <[email protected]>", "Łukasz Biel <[email protected]>"]
description = "Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily"
keywords = ["test", "case", "tests", "unit", "testing"]
categories = ["development-tools", "development-tools::testing"]
readme = "README.md"
readme = "../../README.md"
license = "MIT"
repository = "https://github.com/frondeus/test-case"
documentation = "https://docs.rs/test-case"
Expand Down
10 changes: 6 additions & 4 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,26 @@ set -eo xtrace
./scripts/test_all.sh

nvim Cargo.toml
nvim crates/test-case-macros/Cargo.toml
cargo build

nvim CHANGELOG.md
nvim src/lib.rs

cargo readme > README.md

cargo publish --dry-run --allow-dirty
cargo publish -p test-case-macros --dry-run --allow-dirty
cargo publish -p test-case --dry-run --allow-dirty

git add .
git commit
git push origin

set +o xtrace

echo "Next step: Wait for CI\n"
echo "Next step: \`git tag vX.Y.Z; git push --tags\`\n"
echo "Next step: Create release in Github\n"
echo "Next step: Wait for CI"
echo "Next step: \`git tag vX.Y.Z; git push --tags\`"
echo "Next step: Create release in Github"
echo "Next step: \`cargo publish\`"

cd "${CURRENT_DIR}"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//!
//! ```toml
//! [dev-dependencies]
//! test-case = "2.0.2"
//! test-case = "2.1.0"
//! ```
//!
//! and imported to the scope of a block where it's being called
Expand Down

0 comments on commit fba9d65

Please sign in to comment.