It's all about the answers!

Ask a question

"Require JUnit Test Run" precondition


Mark Castro (741219) | asked Nov 17 '14, 8:47 p.m.
retagged Nov 18 '14, 10:59 a.m. by Evan Hughes (2.4k1318)
Hi all

We enabled this rule recently:
Operation: Deliver (client):
Require JUnit test run Requires a JUnit test to run (successfully) in the Eclipse workspace. Eclipse

But it does not appear to be working (throws an error on Deliver even after the tests are ran). Even when selecting the "Solution" option presented with the error message, the deliver still fails. We specified a valid test suite & Test suite type to look for, but still encounter issues.

IDE: RAD 8 with RTC 4.0.3

I was wondering if there are any known limitations with this precondition? Thanks!


2 answers



permanent link
Eric Jodet (6.3k5111120) | answered Nov 18 '14, 4:05 a.m.
JAZZ DEVELOPER
 Hello Mark,
what is the exact error msg you get on deliver?

Thanks,
Eric

Comments
Mark Castro commented Nov 18 '14, 8:41 a.m.

Hi Eric we get:

--
Problem
Tests should be run locally before delivering changes.
Reason
Require that a specific JUnit test suite is executed before a change set is delivered.

Solutions
Run Tests Locally
--

Even if we then click "Run Tests Locally" then retry, we still receive the error


Eric Jodet commented Nov 18 '14, 9:57 a.m.
JAZZ DEVELOPER

 Hello Mark,

does not ring any bell to me,
and looks like difficult to answer / investigate on the forum.
I would vote for opening a PMR - https://jazz.net/help/support/

Eric


Mark Castro commented Nov 18 '14, 1:59 p.m.

Thanks Eric. I will look to open a PMR


permanent link
Evan Hughes (2.4k1318) | answered Nov 18 '14, 10:58 a.m.
JAZZ DEVELOPER
If you change any Java-related resource in Eclipse (.java, .class, or Java projects) after the test run, the advisor will ignore that test run. It's very sensitive.

Could you commit all of your changes to the change set(s) you want to deliver, run the test suite, then deliver immediately?

Comments
Mark Castro commented Nov 18 '14, 1:59 p.m.

Hi Evan yes we tried this and we still encounter the error


Mark Castro commented Nov 19 '14, 10:10 a.m.

In working with a user, it seems as though the JUnit 3 tests do not work, but the JUnit 4 tests do

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.