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

Reporting of test results #287

Closed
martinmaher opened this Issue Sep 20, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@martinmaher
Collaborator

martinmaher commented Sep 20, 2017

Hi,
When executing Citrus tests that use the TestNGCitrusTestRunner and one of the tests fail, then Citrus reports that the test succeeded.

This appears to happen when the test includes java code that is not nested within a citrus action and this code throws an exception.

To reproduce the problem:
@CitrusTest public void testShoudFail() { if(1==1){ throw new RuntimeException("Oops"); } }

When executed the following is logged:
TEST SUCCESS DummyIT.testShoudFail()
...
CITRUS TEST RESULTS
DummyIT.testShoudFail ...... SUCCES
TOTAL: 1
FAILED: 0 (0.0%)
SUCCESS: 1 (100.0%)

We are using Citrus version 2.7.2

Best regards
Martin

@christophd christophd added this to the v2.7.3 milestone Sep 21, 2017

@karnis

This comment has been minimized.

Contributor

karnis commented Sep 27, 2017

is this the same as #183 but for TestNG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment