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

Why does IBuildResultContribution.getStatus() return ERROR when the JUnit test has passed?

I have code that does something like this:

        List<IBuildResultContribution> allTestSuites = new ArrayList<IBuildResultContribution>();
        IBuildResultContribution[] testSuites = buildClient.getBuildResultContributions(result, IJUnitTestSuiteContribution.EXTENDED_CONTRIBUTION_TYPE_ID,
                                                                                        monitor);
        allTestSuites.addAll(Arrays.asList(testSuites));

        for (IBuildResultContribution brc : allTestSuites) {
              ....
                    // Check that the test suite passed
                    if (!BuildStatus.OK.equals(brc.getStatus())) { // etc

When I visually look at the build result in the RTC UI, I see that all tests have passed. They are green. The log files also indicate that no errors or failures occurred.

However, the "brc.getStatus()" call returns ERROR, not OK. Why could this be happening? Again, the build is completely green. No errors or failures--particularly the JUnit test suite that the "brc" object represents.

0 votes


Be the first one to answer this question!

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

Question asked: Aug 23 '16, 10:06 a.m.

Question was seen: 1,682 times

Last updated: Aug 23 '16, 10:06 a.m.

Confirmation Cancel Confirm