Features:
- Allow let with type declaration in specs.
- Added type signatures (mostly return types).
- Code refactoring to reduce some complexity.
Fixes:
- Infinite recursion with --help option
- Ameba warnings and crystal tool format.
Fixes:
- Special characters in spec
describe
andit
names (e.g.:
); - Runner crashes when diff algorithm swapped expected and actual strings.
Fixes:
- Support for PCRE2
- Remove unused
@@mutex
from Minitest::Assertions - Proper release (v1.2.0 was invalid with Shards)
Fixes:
- Compatibility with Crystal interpreter.
- Runnables aren't shuffled in non chaos mode.
Features:
- Add
message
helper to wrap custom messages for custom assertions on top of existing assertions (missing feature from original Ruby Minitest). - Implements a diff algorithm to remove a dependency on
diff
external tools.
Identical to v0.5.1. A mere v1 stable release of Minitest for Crystal v1.
Requires:
- Crystal >= 0.34.0 (Errno changes)
Requires:
- Crystal >= 0.31.0 (Channel changes)
Fixes:
- MT compatibility
Fixes:
- compatibility with recent Crystal releases (Exception initializer hack);
Fixes:
--name
regression sincefocus
was introduced.
Features:
- Introduce
minitest/focus
to specify tests/specs to focus. Complements the--name
argument and is easier to use in specs.
Fixes:
- Local variable errors in
responds_to
assertions; - Compatibility with Crystal 0.27.0
Features:
- Add
assert_instance_of
,refute_instance_of
assertions; - Add
must_be_instance_of
,wont_be_instance_of
expectations; - Add
capture_io
,assert_silent
,assert_output
assertions. - Add
--chaos
to merge & shuffle all tests from all suites, instead of shuffling suites then shuffling tests for each suite; - Add
--seed SEED
for reproducible test runs (can also be set withSEED
environment variable).
Changes:
- Measure elapsed time using monotonic clock.
Fixes:
- Compatibility with Crystal 0.24.0
Changes:
- dropped artificial src/minitest namespace for files
Fixes:
- Compatibility with Crystal 0.19.0
Fixes:
- Compatibility with Crystal 0.17.0
Fixes:
- Compatibility with Crystal > 0.15.0
Fixes:
- Compatibility with Crystal 0.14.0
Fixes:
- Compatibility with Crystal 0.11.0
Breaking Change:
-
Each test now runs in a single instance of the test class, so instance variables don't leak from one test to another.
This change will have a breaking impact if you rely on instance variables to cache or share data between tests. You'll may want to use class variables for this purpose instead.
Fixes:
- Allow describes in specs to start with special chars like
.
or#
- Allow
skip :symbol
andflunk :symbol
Feature:
Minitest.after_run
hooks
Fixes:
- Crystal > 0.9.1 compatibility
Fixes:
- Don't exit until all test suites have completed
- Exception overload with Crystal 0.8.0
- Compatibility with Crystal 0.8.0
- Compatibility with Crystal 0.7.7 (no more
alias_method
)
- Fixes verbose mode
- Added shard.yml for shards dependency manager
- Initial release: unit tests, specs, runner, ...