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