Skip to content

Improve default html display of diffs #331

Improve default html display of diffs

Improve default html display of diffs #331

GitHub Actions / test-report-net failed Oct 19, 2024 in 0s

17 passed, 1 failed and 4 skipped

Tests failed

❌ net/reports/visual-assert-report.trx

22 tests were completed in 911ms with 17 passed, 1 failed and 4 skipped.

Test suite Passed Failed Skipped Time
Giis.Visualassert.TestDiffLocation 4✅ 8ms
Giis.Visualassert.TestSoftAggregateDiffs 1❌ 4⚪ 54ms
Giis.Visualassert.TestSoftVisualAssert 3✅ 3ms
Giis.Visualassert.TestSoftVisualAssertCallStack 3✅ 3ms
Giis.Visualassert.TestVisualAssert 7✅ 7ms

✅ Giis.Visualassert.TestDiffLocation

✅ TestDifferentSizesNoFail
✅ TestDifferentSizesWithFail
✅ TestEmptyFiles
✅ TestEqualSizes

❌ Giis.Visualassert.TestSoftAggregateDiffs

⚪ TestJunit3FailureWithFileAndFramework
⚪ TestJunit4FailureWithFileAndFramework
❌ TestJunit5FailureWithFile
	  Assert.That(actual, Is.EqualTo(expected))
	  Expected string length 1225 but was 1330. Strings differ at index 1.
	  Expected: "<pre>\n<span>Aggregated failures:&para;\n&para;\n---------------..."
	  But was:  "<span>Aggregated failures:&para;<br>&para;<br>---------------..."
	  ------------^
	
⚪ TestJunit5FailureWithFileAndFramework
⚪ TestJunit5FailureWithFramework

✅ Giis.Visualassert.TestSoftVisualAssert

✅ TestNormalizeLineEndings
✅ TestSoftFail
✅ TestSoftNoFail

✅ Giis.Visualassert.TestSoftVisualAssertCallStack

✅ TestMultipleStackItem
✅ TestSingleStackItem
✅ TestZeroStackItem

✅ Giis.Visualassert.TestVisualAssert

✅ TestAutogeneratedFileSequence
✅ TestFailAllConditionsFalse
✅ TestFailAllConditionsTrue
✅ TestFailWithNulls
✅ TestNoFail
✅ TestNormalizeLineEndings
✅ TestQualifiedFileNames

Annotations

Check failure on line 57 in net/TestVisualAssert/Giis.Visualassert/TestSoftAggregateDiffs.cs

See this annotation in the file changed.

@github-actions github-actions / test-report-net

Giis.Visualassert.TestSoftAggregateDiffs ► TestJunit5FailureWithFile

Failed test found in:
  net/reports/visual-assert-report.trx
Error:
    Assert.That(actual, Is.EqualTo(expected))
    Expected string length 1225 but was 1330. Strings differ at index 1.
    Expected: "<pre>\n<span>Aggregated failures:&para;\n&para;\n---------------..."
    But was:  "<span>Aggregated failures:&para;<br>&para;<br>---------------..."
    ------------^
  
Raw output
  Assert.That(actual, Is.EqualTo(expected))
  Expected string length 1225 but was 1330. Strings differ at index 1.
  Expected: "<pre>\n<span>Aggregated failures:&para;\n&para;\n---------------..."
  But was:  "<span>Aggregated failures:&para;<br>&para;<br>---------------..."
  ------------^

   at NUnit.Framework.Legacy.ClassicAssert.AreEqual(Object expected, Object actual)
   at Giis.Visualassert.TestSoftAggregateDiffs.AssertAggregateFile(String tempReportPath) in /home/runner/work/visual-assert/visual-assert/net/TestVisualAssert/Giis.Visualassert/TestSoftAggregateDiffs.cs:line 57
   at Giis.Visualassert.TestSoftAggregateDiffs.TestJunit5FailureWithFile() in /home/runner/work/visual-assert/visual-assert/net/TestVisualAssert/Giis.Visualassert/TestSoftAggregateDiffs.cs:line 43

1)    at NUnit.Framework.Legacy.ClassicAssert.AreEqual(Object expected, Object actual)
   at Giis.Visualassert.TestSoftAggregateDiffs.AssertAggregateFile(String tempReportPath) in /home/runner/work/visual-assert/visual-assert/net/TestVisualAssert/Giis.Visualassert/TestSoftAggregateDiffs.cs:line 57
   at Giis.Visualassert.TestSoftAggregateDiffs.TestJunit5FailureWithFile() in /home/runner/work/visual-assert/visual-assert/net/TestVisualAssert/Giis.Visualassert/TestSoftAggregateDiffs.cs:line 43