MultiStatus stores details on the test cases run under the EUnit test framework.
org.eclipse.edt.eunit.runtime
handler MultiStatus
/* accumulate the aggregate values */
testCnt int;
expectedCnt int;
passedCnt int;
failedCnt int;
errCnt int;
badCnt int;
notRunCnt int;
firstFailedTestName String;
/**
* add status to MultiStatus
*/
function addStatus(testId String in)
s Status = LogResult.getStatus();
msg String = testId + ": " + s.reason;
LogResult.logStdOut(msg);
testCnt += 1;
case(s.code)
when (ConstantsLib.SPASSED)
passedCnt += 1;
when (ConstantsLib.SFAILED)
failedCnt += 1;
when (ConstantsLib.SERROR)
errCnt += 1;
when (ConstantsLib.SNOT_RUN)
notRunCnt += 1;
otherwise
badCnt += 1;
end
if(s.code != ConstantsLib.SPASSED &&
strLib.characterLen(firstFailedTestName) == 0)
firstFailedTestName = testId;
end
end
end
For a description of how to use the framework, see Developing and running test cases with EUnit.
| Target | Issue |
|---|---|
| Java | No issues. |
| JavaScript | No issues. |