Skip to content

Tags: azriel91/assert_cli

Tags

v0.5.4

Toggle v0.5.4's commit message
Release 0.5.4

- `Assert::with_env` for setting environment variables

v0.5.3

Toggle v0.5.3's commit message
Release v0.5.3

- Support writing to `stdin`

v0.5.2

Toggle v0.5.2's commit message
Release 0.5.2

- Show stdout/stderr on exit code failures
- Show expected/got strings for output assertions

v0.5.1

Toggle v0.5.1's commit message
Release 0.5.1

- Reduce unnecesary rebuilds due to skeptic.

v0.5.0

Toggle v0.5.0's commit message
Release 0.5.0

This release includes
- Changing output asserts
  - `.prints` -> `.stdout().contains`
  - `.prints_exactly` -> `.stdout().is`
  - `.prints_error` -> `.stderr().contains`
  - `.prints_error_exactly` -> `.stderr().is`
- Add negative output assertions
  - `.stdout().isnt`
  - `.stdout().doesnt_contain`
- Output assertions are now anded together rather than replacing each
  other.

v0.4.0

Toggle v0.4.0's commit message
Add more Cargo metadata

v0.3.0

Toggle v0.3.0's commit message
- Now returns output information from assert calls

v0.2.2

Toggle v0.2.2's commit message
Auto merge of assert-rs#7 - Lindenk:ignore_output, r=killercup

Option to ignore output

Fixes assert-rs#6. I was thinking about whether to implement it as interpreting an empty string as matching any output, but I can see how many situations might call for explicitly expecting a command not to output (such as when testing a quiet mode). Is this alright?

Also, I think fuzzy matching should be a new issue. It would be a much different of an implementation than assert-rs#6.

v0.2.1

Toggle v0.2.1's commit message
Auto merge of assert-rs#5 - killercup:feature/apache+mit, r=killercup

Feature/apache+mit

v0.2.0

Toggle v0.2.0's commit message
- This adds the `assert_cli!` macro

- Rename `CliError::NoSuccess` to `CliError::WrongExitCode`