snitch-org / snitch

Lightweight C++20 testing framework.
Boost Software License 1.0
262 stars 7 forks source link

Add XML reporter and approval tests #111

Closed cschreib closed 1 year ago

cschreib commented 1 year ago

This PR does the following:

As a result, the following Catch2 IDE integrations now work with snitch:

codecov[bot] commented 1 year ago

Codecov Report

Merging #111 (bff879a) into main (600f532) will increase coverage by 0.36%. The diff coverage is 96.19%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/cschreib/snitch/pull/111/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://app.codecov.io/gh/cschreib/snitch/pull/111?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 #111 +/- ## ========================================== + Coverage 93.31% 93.67% +0.36% ========================================== Files 23 27 +4 Lines 1256 1597 +341 ========================================== + Hits 1172 1496 +324 - Misses 84 101 +17 ``` | [Files Changed](https://app.codecov.io/gh/cschreib/snitch/pull/111?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\_string\_utility.hpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-aW5jbHVkZS9zbml0Y2gvc25pdGNoX3N0cmluZ191dGlsaXR5LmhwcA==) | `100.00% <ø> (ø)` | | | [src/snitch\_section.cpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-c3JjL3NuaXRjaF9zZWN0aW9uLmNwcA==) | `82.35% <ø> (ø)` | | | [src/snitch\_file.cpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-c3JjL3NuaXRjaF9maWxlLmNwcA==) | `70.58% <70.58%> (ø)` | | | [include/snitch/snitch\_registry.hpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-aW5jbHVkZS9zbml0Y2gvc25pdGNoX3JlZ2lzdHJ5LmhwcA==) | `82.85% <80.64%> (-10.00%)` | :arrow_down: | | [src/snitch\_reporter\_catch2\_xml.cpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-c3JjL3NuaXRjaF9yZXBvcnRlcl9jYXRjaDJfeG1sLmNwcA==) | `94.52% <94.52%> (ø)` | | | [src/snitch\_registry.cpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-c3JjL3NuaXRjaF9yZWdpc3RyeS5jcHA=) | `94.88% <97.77%> (-0.33%)` | :arrow_down: | | [include/snitch/snitch\_expression.hpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-aW5jbHVkZS9zbml0Y2gvc25pdGNoX2V4cHJlc3Npb24uaHBw) | `92.85% <100.00%> (ø)` | | | [include/snitch/snitch\_function.hpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-aW5jbHVkZS9zbml0Y2gvc25pdGNoX2Z1bmN0aW9uLmhwcA==) | `100.00% <100.00%> (ø)` | | | [include/snitch/snitch\_vector.hpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-aW5jbHVkZS9zbml0Y2gvc25pdGNoX3ZlY3Rvci5ocHA=) | `98.03% <100.00%> (+0.03%)` | :arrow_up: | | [src/snitch\_cli.cpp](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber#diff-c3JjL3NuaXRjaF9jbGkuY3Bw) | `81.13% <100.00%> (+0.86%)` | :arrow_up: | | ... and [3 more](https://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/cschreib/snitch/pull/111/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/cschreib/snitch/pull/111?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://app.codecov.io/gh/cschreib/snitch/pull/111?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Corentin+Schreiber). Last update [600f532...bff879a](https://app.codecov.io/gh/cschreib/snitch/pull/111?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).