-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add JUnit-style output so that Telescope can be used with Jenkins #11
Comments
Here is an example of an xml file that gets interpreted correctly by Jenkins's JUnit plugin. I started to hack something for Telescope but gave up because I didn't know how to map contexts to JUnit structure. <?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Webchat" tests="11" errors="0" failures="0" skip="0" date="Wed Dec 7 20:49:34 2011">
<testcase classname="WebChat Functional Tests.TestBasicFlow" name="Testea el flujo basico WebLogin->Respuesta ICR->Toma de Chat de Agente->Dialogo Desde Agente a UsuarioWeb->Dialogo de UsuarioWeb a Agente-> UsuarioWeb se va->Agente se va>" time="4"> </testcase>
<testcase classname="WebChat Functional Tests.TestQueueAndTakeByOther" name="WebLogin->Respuesta ICR->Toma Chat Agente1->Habla ClienteWeb->Deja Chat Agente1->TomaChat Agente2 -> Habla Agente 2-> Responde ClienteWeb->Termina la charla" time="4"> </testcase>
<testcase classname="WebChat Functional Tests.TestInvalidICRTalk" name="Intento ICR Hable al Cliente Web cuando no deberia estar en la session" time="3"> </testcase>
<testcase classname="WebChat Functional Tests.TestInvalidAgentTalk" name="Intento Agente1 Hable al chat luego de haber abandonado la session" time="3"> </testcase>
<testcase classname="WebChat API Tests.TestSendChatMessageICRLogedIn" name="Testea que se envie un mensaje cuando ICR esta presente en la sesion" time="2"> </testcase>
<testcase classname="WebChat Functional Tests.TestSendChatMessageICRLoggedOut" name="Testea que no se pueda enviar un mensaje cuando ICR no esta presente en la sesion" time="2"> </testcase>
<testcase classname="WebChat API Tests.TestLink1AgentToChat" name="Testea que se Linkee correctamente un agente a una session de chat" time="2"> </testcase>
<testcase classname="WebChat Functional Tests.TestLink2AgentsToChat" name="Testea que se Linkee correctamente dos agentes a una session" time="3"> </testcase>
<testcase classname="WebChat API Tests.TestUnlinkChatWith1Agent" name="Testea que se UnLinkee correctamente un agente de una session de chat" time="3"> </testcase>
<testcase classname="WebChat API Tests.TestUnlinkChatWith2Agents" name="Testea que se UnLinkee correctamente un agente de una session de chat existiendo otro" time="4"> </testcase>
<testcase classname="WebChat API Tests.TestUnlinkNoPresentAgent" name="Testea el comportamiento de Unlink cuando no hay agente presente" time="2"> </testcase>
</testsuite> |
Can't Jenkins just use the exit status of the command? I use Jenkins with a Rails app and don't output any XML file. |
Yes it can, but it can't show each test result. It just says that the test failed but you don't get all the fancy graphs. |
I've opened a pull request (#26) that adds basic support for the JUnit XML format. It's not ready to merge, but I'm interested on receiving some feedback, like whether the implementation approach is right to have it eventually merged. |
As requested by @ignacio.
The text was updated successfully, but these errors were encountered: