Junit5 and spira

Tuesday, June 26, 2018 12:04:30 PM

Hello,

 

this was my junit4 code
                JUnitCore core = new JUnitCore();
                SpiraTestListener listener = new SpiraTestListener();
                listener.setUrl("url");
                listener.setUserName("xxx");
                listener.setPassword("xxx");
                listener.setProjectId(1);
                listener.setReleaseId(-1);
                listener.setTestSetId(-1);
                core.addListener(listener);
                core.run(testCase.getClassName());

 

How I can do the same in junit5? Is there some documentation?

2 Replies
Monday, July 2, 2018 7:41:44 PM
Avatar
re: benjamin on Tuesday, June 26, 2018 12:04:30 PM

Hi Benjamin,

I would recommend logging a help desk ticket to get more specific advice.

Here's some general advice - https://stackoverflow.com/questions/48595037/whats-the-junit-5-way-for-runlisteners

Regards

Jim

Monday, July 16, 2018 6:04:00 PM
Avatar
re: inflectra.jimx on Monday, July 2, 2018

Hi Benjamin,

We just released an updated plugin for JUnit 5:

https://www.inflectra.com/Ideas/Entry/junit-5-extension-now-available-675.aspx

Regards

Adam

Statistics
  • Started: Tuesday, June 26, 2018 12:04:30 PM
  • Last Reply: Monday, July 16, 2018 6:04:00 PM
  • Replies: 2
  • Views: 286