Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XDocumentComparer and XmlComparer #105

Merged
merged 4 commits into from
Oct 27, 2024
Merged

Conversation

nowsprinting
Copy link
Owner

Add two NUnit test comparer implementations.

XDocumentComparer

XDocumentComparer is a NUnit test comparer class that loosely compares XDocument.

It only compares the attributes and values of each element in the document unordered.
XML declarations and comments are ignored.

XmlComparer

XmlComparer is a NUnit test comparer class that loosely compares string as XML documents.

It only compares the attributes and values of each element in the document unordered.
XML declarations and comments are ignored, and white spaces, tabs, and newlines before and after the value are ignored.

@github-actions github-actions bot added the enhancement New feature or request label Oct 27, 2024

This comment has been minimized.

Copy link

Code Metrics Report

master (ed7ebcf) #105 (9852f26) +/-
Coverage 72.3% 75.8% +3.5%
Code to Test Ratio 1:0.9 1:0.8 -0.1
Test Execution Time 3m5s 3m47s +42s
Details
  |                     | master (ed7ebcf) | #105 (9852f26) |  +/-  |
  |---------------------|------------------|----------------|-------|
+ | Coverage            |            72.3% |          75.8% | +3.5% |
  |   Files             |               27 |             29 |    +2 |
  |   Lines             |              668 |            806 |  +138 |
+ |   Covered           |              483 |            611 |  +128 |
- | Code to Test Ratio  |            1:0.9 |          1:0.8 |  -0.1 |
  |   Code              |             1291 |           1478 |  +187 |
+ |   Test              |             1207 |           1321 |  +114 |
- | Test Execution Time |             3m5s |          3m47s |  +42s |

Code coverage of files in pull request scope (0.0% → 92.7%)

Files Coverage +/-
Runtime/Comparers/XDocumentComparer.cs 92.0% +92.0%
Runtime/Comparers/XmlComparer.cs 100.0% +100.0%

Reported by octocov

@nowsprinting nowsprinting merged commit 84b6839 into master Oct 27, 2024
14 checks passed
@nowsprinting nowsprinting deleted the feature/xml_comparer branch October 27, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant