1*d6050574SRomain Jobredeaux# rules_testing Changelog 2*d6050574SRomain Jobredeaux 3*d6050574SRomain Jobredeaux## Unreleased 4*d6050574SRomain Jobredeaux 5*d6050574SRomain Jobredeaux### Added 6*d6050574SRomain Jobredeaux * Common attributes, such as `tags` and `target_compatible_with` can now 7*d6050574SRomain Jobredeaux be set on tests themselves. This allows skipping tests based on platform 8*d6050574SRomain Jobredeaux or filtering out tests using `--test_tag_filters` 9*d6050574SRomain Jobredeaux ([#43](https://github.com/bazelbuild/rules_testing/issues/43)) 10*d6050574SRomain Jobredeaux * DefaultInfoSubject for asserting the builtin DefaultInfo provider 11*d6050574SRomain Jobredeaux ([#52](https://github.com/bazelbuild/rules_testing/issues/52)) 12*d6050574SRomain Jobredeaux * StructSubject for asserting arbitrary structs. 13*d6050574SRomain Jobredeaux ([#53](https://github.com/bazelbuild/rules_testing/issues/53)) 14*d6050574SRomain Jobredeaux * (docs) Created human-friendly changelog 15*d6050574SRomain Jobredeaux 16*d6050574SRomain Jobredeaux## [0.3.0] - 2023-07-06 17*d6050574SRomain Jobredeaux 18*d6050574SRomain Jobredeaux### Added 19*d6050574SRomain Jobredeaux * Publically exposed subjects in `truth.bzl#subjects`. This allows 20*d6050574SRomain Jobredeaux direct creation of subjects without having to go through the 21*d6050574SRomain Jobredeaux `expect.that_*` functions. This makes it easier to implement 22*d6050574SRomain Jobredeaux custom subjects. ([#54](https://github.com/bazelbuild/rules_testing/issues/54)) 23*d6050574SRomain Jobredeaux * `matching.file_basename_equals` for matching a File basename. 24*d6050574SRomain Jobredeaux ([#44](https://github.com/bazelbuild/rules_testing/issues/44)) 25*d6050574SRomain Jobredeaux * `matching.file_extension_in` for matching a File extension. 26*d6050574SRomain Jobredeaux ([#44](https://github.com/bazelbuild/rules_testing/issues/44)) 27*d6050574SRomain Jobredeaux * `DictSubject.get` for fetching sub-values within a dict as subjects. 28*d6050574SRomain Jobredeaux ([#51](https://github.com/bazelbuild/rules_testing/issues/51)) 29*d6050574SRomain Jobredeaux * `CollectionSubject.transform` for arbitrary transforming and filtering 30*d6050574SRomain Jobredeaux of a collection. 31*d6050574SRomain Jobredeaux ([#45](https://github.com/bazelbuild/rules_testing/issues/45)) 32*d6050574SRomain Jobredeaux 33*d6050574SRomain Jobredeaux[0.3.0]: https://github.com/bazelbuild/rules_testing/releases/tag/v0.3.0 34*d6050574SRomain Jobredeaux 35*d6050574SRomain Jobredeaux## [0.2.0] - 2023-06-14 36*d6050574SRomain Jobredeaux 37*d6050574SRomain Jobredeaux### Added 38*d6050574SRomain Jobredeaux * Unit-test style tests. These are tests that don't require a "setup" 39*d6050574SRomain Jobredeaux phase like analysis tests do, so all you need to write is the 40*d6050574SRomain Jobredeaux implementation function that does asserts. 41*d6050574SRomain Jobredeaux ([#37](https://github.com/bazelbuild/rules_testing/issues/37)) 42*d6050574SRomain Jobredeaux * (docs) Document some best practices for test naming and structure. 43*d6050574SRomain Jobredeaux 44*d6050574SRomain Jobredeaux### Deprecated 45*d6050574SRomain Jobredeaux * `//lib:analysis_test.bzl#test_suite`: use `//lib:test_suite.bzl#test_suite` 46*d6050574SRomain Jobredeaux instead. The name in `analysis_test.bzl` will be removed in a future 47*d6050574SRomain Jobredeaux release. 48*d6050574SRomain Jobredeaux 49*d6050574SRomain Jobredeaux[0.2.0]: https://github.com/bazelbuild/rules_testing/releases/tag/v0.2.0 50*d6050574SRomain Jobredeaux 51*d6050574SRomain Jobredeaux## [0.1.0] - 2023-05-02 52*d6050574SRomain Jobredeaux 53*d6050574SRomain Jobredeaux### Fixed 54*d6050574SRomain Jobredeaux * Don't require downstream user to register Python toolchains. 55*d6050574SRomain Jobredeaux ([#33](https://github.com/bazelbuild/rules_testing/issues/33)) 56*d6050574SRomain Jobredeaux 57*d6050574SRomain Jobredeaux[0.1.0]: https://github.com/bazelbuild/rules_testing/releases/tag/v0.1.0 58*d6050574SRomain Jobredeaux 59*d6050574SRomain Jobredeaux## [0.0.5] - 2023-04-25 60*d6050574SRomain Jobredeaux 61*d6050574SRomain Jobredeaux**NOTE: This version is broken with bzlmod** 62*d6050574SRomain Jobredeaux 63*d6050574SRomain Jobredeaux## Fixed 64*d6050574SRomain Jobredeaux * Fix crash when equal collections with differing orders have 65*d6050574SRomain Jobredeaux `in_order()` checked. 66*d6050574SRomain Jobredeaux ([#29](https://github.com/bazelbuild/rules_testing/issues/29)) 67*d6050574SRomain Jobredeaux 68*d6050574SRomain Jobredeaux## Added 69*d6050574SRomain Jobredeaux * Generated docs with API reference at https://rules-testing.readthedocs.io 70*d6050574SRomain Jobredeaux ([#28](https://github.com/bazelbuild/rules_testing/issues/28)) 71*d6050574SRomain Jobredeaux 72*d6050574SRomain Jobredeaux[0.0.5]: https://github.com/bazelbuild/rules_testing/releases/tag/v0.0.5 73