Skip to content

Commit

Permalink
Bump version to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-biel committed Feb 13, 2023
1 parent 70a962f commit b093c70
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 3.0.0

[IMPORTANT] Starting with 3.0 release we are changing `test-case` MSRV policy to support only 3 latest stable releases.

### Changes
* Split out functional parts of `test-case-macros` crate into `test-case-core` for easy reuse by external libraries

## 2.2.2
### Bugfixes
* Use fully qualified `test` macro path to avoid conflicts in workspace (#105)
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.2.2"
version = "3.0.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 = { version = "2.2.2", path = "crates/test-case-macros", default-features = false }
test-case-macros = { version = "3.0.0", path = "crates/test-case-macros", default-features = false }
regex = { version = "1.5", optional = true }

[dev-dependencies]
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Crates.io](https://img.shields.io/crates/v/test-case.svg)](https://crates.io/crates/test-case)
[![Crates.io](https://img.shields.io/crates/d/test-case.svg)](https://crates.io/crates/test-case)
[![1.49+](https://img.shields.io/badge/rust-1.49.0%2B-orange.svg)](https://img.shields.io/badge/rust-1.49.0%2B-orange.svg)
[![Docs.rs](https://docs.rs/test-case/badge.svg)](https://docs.rs/test-case)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/rust-lang/docs.rs/master/LICENSE)
[![Build Status](https://github.com/frondeus/test-case/workflows/Test/badge.svg)](https://github.com/frondeus/test-case/actions)
Expand All @@ -17,7 +16,7 @@ Crate has to be added as a dependency to `Cargo.toml`:

```toml
[dev-dependencies]
test-case = "2.2.2"
test-case = "3.0.0"
```

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

## MSRV Policy

Starting with version 3.0 and up `test-case` introduces policy of only supporting latest stable Rust.
These changes may happen overnight, so if your stack is lagging behind current stable release,
it may be best to consider locking `test-case` version with `=` in your `Cargo.toml`.

## Documentation

Most up to date documentation is available in our [wiki](https://github.com/frondeus/test-case/wiki).
Expand Down
2 changes: 1 addition & 1 deletion crates/test-case-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test-case-macros"
version = "2.2.2"
version = "3.0.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 Down
2 changes: 0 additions & 2 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ find . -name 'target' | xargs rm -rf
SNAPSHOT_DIR=rust-stable cargo +stable test --workspace --all-features
find . -name 'target' | xargs rm -rf
SNAPSHOT_DIR=rust-nightly cargo +nightly test --workspace --all-features
find . -name 'target' | xargs rm -rf
SNAPSHOT_DIR=rust-1.49.0 cargo +1.49 test --workspace --all-features
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.2.2"
//! test-case = "3.0.0"
//! ```
//!
//! and imported to the scope of a block where it's being called
Expand Down

0 comments on commit b093c70

Please sign in to comment.