[Nice-commit] Nice/src/nice/tools/testsuite/output TextOutput.java,1.4,1.5
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-03-16 19:21:47
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite/output
In directory sc8-pr-cvs1:/tmp/cvs-serv5999/src/nice/tools/testsuite/output
Modified Files:
TextOutput.java
Log Message:
Allow test cases to be marked as known bugs with /// PASS bug and /// FAIL bug.
When they fail, their source code is not written, and they are not counted
as regressions.
This allows to commit test cases for known bugs before a fix is made, while
still easily spotting regressions.
Index: TextOutput.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/output/TextOutput.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TextOutput.java 7 Sep 2002 21:05:04 -0000 1.4
--- TextOutput.java 16 Mar 2003 19:21:44 -0000 1.5
***************
*** 84,91 ****
log("test engine finished");
log("");
! log("number of testcases: " + (TestNice.getTestCasesSucceeded() + TestNice.getTestCasesFailed()));
! log(" succeeded: " + TestNice.getTestCasesSucceeded());
! log(" failed : " + TestNice.getTestCasesFailed());
! log(" warnings : " + TestNice.getTestCasesWarning());
logAndFlush("");
}
--- 84,95 ----
log("test engine finished");
log("");
! log("number of testcases: " + (TestNice.getTotalTestCases()));
! log(" successes : " + TestNice.getTestCasesSucceeded());
! log(" regressions: " + TestNice.getTestCasesFailed());
! log(" warnings : " + TestNice.getTestCasesWarning());
! log(" known bugs : " + TestNice.getTestCasesKnownBug());
! if (TestNice.getTestCasesFixed() > 0)
! log(" FIXES :-)) : " + TestNice.getTestCasesFixed());
!
logAndFlush("");
}
|