You need a plugin like xUnit. Then you need to configure karma to output in a 
format it understands. I have traditionally saved all test output in junit 
format

From: Erick Macedo <[email protected]<mailto:[email protected]>>
Reply-To: 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Thursday, May 28, 2015 at 2:21 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: How to jenkins interact with tests carried out with Karma via ssh

hi,

After much difficulty I can carry out the project for a transfer windowns 
server via ssh and run the grunt test.

Now my problem is the implementation of these test, the grunt performs 
functional tests with karma and stores it in an xml, the jenkins displays the 
result on the console.

But even if the test failed it builds successfully build.

How can I make jenkins interact with these tests to break the build on failure?

thank

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/6938fcf1-9a1c-42d8-a2b6-a9b9a52870bc%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-dev/6938fcf1-9a1c-42d8-a2b6-a9b9a52870bc%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/D18CE7F2.15577%25thomas.suckow%40pnnl.gov.
For more options, visit https://groups.google.com/d/optout.

Reply via email to