Nice TWiki > Dev > TestSuite (r1.3 vs. r1.4) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Dev . { Changes | Index | Search | Go }
 <<O>>  Difference Topic TestSuite (r1.4 - 17 Mar 2003 - DanielBonniot)
Changed:
<
<

PASS and FAIL GLOBAL COMMENT

>
>

PASS and FAIL

Changed:
<
<

Testcases may contain the TOPLEVEL keyword that has the following meaning: everything in front of the TOPLEVEL keyword will be collected in the main() method. Statements behind the TOPLEVEL keyword are global to the package, like global variables, functions or class definitions.

>
>

Known bugs

When a bug is found, I often write a testcase for it first, before the bug is fixed. In that case, it is useful to flag the testcase as being a known bug. This is done by adding bug at the end of the line. I such a testcase is indeed found to include an error, well we knew it and print nothing. But if it works, then print a victorious message! :-). In the summary:
  known bugs: 2
  fixed: 1

Testcases may contain the TOPLEVEL keyword that has the following meaning: everything in front of the TOPLEVEL keyword will be collected in the main() method. Statements behind the TOPLEVEL keyword are global to the package, like global variables, functions, methods and class definitions.

Changed:
<
<

GLOBAL

>
>

Global

Deleted:
<
<

Known bugs

When a bug is found, I often write a testcase for it first, before the bug is fixed. This means that an error is printed each time the testsuite is run, even if I work on something else. Moreover I don't want to commit the new case, because someone else might think they introduced a bug. So what I propose is to have a flag for test cases:/// PASS (BUG) and /// FAIL (BUG)to tell that the testcase is not working yet. This means that if an error if found, well we knew it and print nothing. But if it works, then print a vidtorious message! :-) and the source of the case. In the summary:
  known bugs: 2
  corrected: 1

Topic TestSuite . { View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.3 - 25 Feb 2003 - 09:53 GMT - TWikiGuest
Revision r1.4 - 17 Mar 2003 - 17:46 GMT - DanielBonniot
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.