T
T
tsovak2015-12-22 12:19:36
Java
tsovak, 2015-12-22 12:19:36

Why doesn't org.junit.Assert paint cases in TeamCity when called?

There is a test under Maven.
here are the cases

@Test
    public void aTest(){
    msg.error("a test failed by me");
}
 @Test
    public void bTest()
    {
        Assert.fail("Assertion is null"); 
    }

msg.error alloys the message with Build Script Interaction with TeamCity. the message is displayed in red. the case turns red
Assert.fail - also gives a red message, but the test does not turn red.
84fe9f611f6d4bac89a36076b6354d27.PNG
Tried using Logger.error(""), but the case still does not fail.
no assert paints the case.
Tell me, please, what could be the reason?
test run mvn clean verify

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tsovak, 2015-12-22
@tsovak

Build Script Interaction with TeamCity blocks threads from junit. you can either use Build Script Interaction with TeamCity or use junit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question