TNG / ArchUnitNET

A C# architecture test library to specify and assert architecture rules in C# for automated testing.
Apache License 2.0
915 stars 60 forks source link

ci: improve test coverage and add snapshot tests for object conditions #291

Closed alexanderlinne closed 2 months ago

alexanderlinne commented 2 months ago

With this PR we add new test cases for methods defined in ArchUnitNET/Fluent/Syntax/Elements/ObjectsShould.cs and ArchUnitNET/Fluent/Syntax/Elements/ObjectConditionsDefinition.cs that achieves the following:

The new tests will replace tests in ArchUnitNETTests/Fluent/Syntax/Elements/ObjectSyntaxElementsTests.cs, but to remove these tests without reducing the code coverage, additional tests for ArchUnitNET/Fluent/Syntax/Elements/ObjectPredicatesDefinition.cs will be needed.

Relates to #229, providing a way to check for changes to the error messages in pull requests

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 65.37%. Comparing base (0ebfbdf) to head (a428ef6).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #291 +/- ## ========================================== + Coverage 56.70% 65.37% +8.66% ========================================== Files 254 254 Lines 22842 22842 Branches 1938 1938 ========================================== + Hits 12953 14932 +1979 + Misses 9334 7368 -1966 + Partials 555 542 -13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.