Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jun 17:18

Three small improvements which might potentially represent breaking changes, but likely do not:

Inner and outer attributes

As identified by @tisonkun in #33, previous versions of this crate did not support tagging a test function with #[ignore]. Other attributes were also ignored. As of test-harness 0.3.0, both inner and outer attributes are applied to the test function.

Function visibility

This version also propagates test function visibility

Special handling of #[should_panic]

In general, tests can return any impl std::process::Termination, but #[should_panic] tests MUST return the concrete unit type (). In order to enable the usage of #[should_panic] now that attributes are propagated, test-harness checks for that attribute specifically and forces the return type to be ().

Changelog

Added

  • [breaking] propagate attributes and visibility

Other

  • (actions) enforce conventional commits
  • (deps) bump actions/configure-pages from 4 to 5
  • (actions) dependabot uses conventional commits
  • Bump Swatinem/rust-cache from 2.7.2 to 2.7.3
  • (actions) use release-plz
  • (actions) remove protoc from docs and fix permissions
  • Bump Swatinem/rust-cache from 2.7.1 to 2.7.2