Skip to content

*** fail on purpose #283

*** fail on purpose

*** fail on purpose #283

GitHub Actions / JUnit Test Report failed Nov 4, 2024 in 0s

3 tests run, 2 passed, 0 skipped, 1 failed.

true

Annotations

Check failure on line 19 in src/test/java/org/samples/SampleTests.java

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

SampleTests.testWithApprovalTests

expected: <Hello World
> but was: <Bye bye World
>
Raw output
org.opentest4j.AssertionFailedError: 
expected: <Hello World
> but was: <Bye bye World
>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.approvaltests.reporters.AbstractJUnitReporter.assertEquals(AbstractJUnitReporter.java:25)
	at org.approvaltests.reporters.AbstractJUnitReporter.report(AbstractJUnitReporter.java:45)
	at org.approvaltests.reporters.FirstWorkingReporter.report(FirstWorkingReporter.java:21)
	at org.approvaltests.reporters.FirstWorkingReporter.report(FirstWorkingReporter.java:21)
	at org.approvaltests.reporters.FirstWorkingReporter.report(FirstWorkingReporter.java:21)
	at org.approvaltests.approvers.FileApprover.reportFailure(FileApprover.java:51)
	at org.approvaltests.Approvals.verify(Approvals.java:233)
	at org.approvaltests.Approvals.verify(Approvals.java:188)
	at org.approvaltests.Approvals.verify(Approvals.java:196)
	at org.approvaltests.Approvals.verify(Approvals.java:55)
	at org.approvaltests.Approvals.verify(Approvals.java:51)
	at org.samples.SampleTests.testWithApprovalTests(SampleTests.java:19)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)