Skip to content

v0.1.1

Choose a tag to compare

@morodomi morodomi released this 11 Mar 04:59
· 248 commits to main since this release

Bug fixes and two new configuration features since the initial public beta.

Features

  • --min-severity display filter (#59): Filter terminal/JSON output by severity level. exspec --min-severity warn . hides INFO diagnostics. Does not affect exit code (BLOCK violations still fail regardless of filter).
  • Per-rule severity override (#60): [rules.severity] in .exspec.toml lets you change a rule's evaluation severity or disable it entirely. T107 = "off" disables the rule; T101 = "info" downgrades from WARN to INFO.

Bug Fixes

  • .tsx files: TypeScript assertion detection now uses the TSX parser, fixing false positives on .tsx test files (#53)
  • [paths] ignore config: The ignore patterns in .exspec.toml were not applied to file discovery (#54)
  • T109 CJK test names: Single-word heuristic falsely flagged Japanese/Chinese test names as undescriptive (#55)
  • @pytest.fixture false positives: Functions decorated with @pytest.fixture that start with test_ are no longer analyzed as test functions (#56)
  • pytest.fail() as test oracle: pytest.fail() is now recognized as a valid assertion for T001 (#57)
  • PHP Facade::shouldReceive(): Static Mockery calls on Laravel Facades are now recognized as assertions for T001 (#58)

Install

cargo install --git https://github.com/morodomi/exspec.git

Full changelog: https://github.com/morodomi/exspec/blob/main/CHANGELOG.md