Skip to content
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

Open
norman opened this issue Dec 8, 2011 · 4 comments
Open

Add JUnit-style output so that Telescope can be used with Jenkins #11

norman opened this issue Dec 8, 2011 · 4 comments

Comments

@norman
Copy link
Owner

norman commented Dec 8, 2011

As requested by @ignacio.

@ignacio
Copy link

ignacio commented Dec 8, 2011

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>

@norman
Copy link
Owner Author

norman commented Dec 8, 2011

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.

@ignacio
Copy link

ignacio commented Dec 8, 2011

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.

@jvprat
Copy link

jvprat commented Jan 11, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants