Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

"Require JUnit Test Run" precondition

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!


1 vote



2 answers

Permanent link
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?

0 votes

Comments

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

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


Permanent link
 Hello Mark,
what is the exact error msg you get on deliver?

Thanks,
Eric

0 votes

Comments

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

 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

Thanks Eric. I will look to open a PMR

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,117
× 1,201
× 89
× 27

Question asked: Nov 17 '14, 8:47 p.m.

Question was seen: 5,880 times

Last updated: Nov 19 '14, 10:10 a.m.

Confirmation Cancel Confirm