snitch-org / snitch

Lightweight C++20 testing framework.
Boost Software License 1.0
268 stars 10 forks source link

Added support for fixtures #53

Closed cschreib closed 1 year ago

cschreib commented 1 year ago

This PR adds macros to support test fixtures, for the more traditional set-up/tear-down layout.

codecov-commenter commented 1 year ago

Codecov Report

Merging #53 (1443e2b) into main (f96049b) will not change coverage. The diff coverage is n/a.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/cschreib/snitch/pull/53/graphs/tree.svg?width=650&height=150&src=pr&token=X422DE81PN&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber)](https://codecov.io/gh/cschreib/snitch/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber) ```diff @@ Coverage Diff @@ ## main #53 +/- ## ======================================= Coverage 92.75% 92.75% ======================================= Files 2 2 Lines 994 994 ======================================= Hits 922 922 Misses 72 72 ``` | [Impacted Files](https://codecov.io/gh/cschreib/snitch/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber) | Coverage Δ | | |---|---|---| | [include/snitch/snitch.hpp](https://codecov.io/gh/cschreib/snitch/pull/53/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-aW5jbHVkZS9zbml0Y2gvc25pdGNoLmhwcA==) | `96.03% <ø> (ø)` | | ------ [Continue to review full report at Codecov](https://codecov.io/gh/cschreib/snitch/pull/53?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/cschreib/snitch/pull/53?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber). Last update [f96049b...1443e2b](https://codecov.io/gh/cschreib/snitch/pull/53?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber).