Version 10 (modified by mirschel, 17 years ago) (diff) |
---|
Unit Tests
ProMoT in its present state is a very complex software. In order to minimize bugs and possible side effects when changing code
fragments and improve the overall quality of ProMoT, it is good practice to integrate and run automated tests.
For the Java part the JUnit testing framework is a suitable solution.
There are already some tests implemented. They are listed in the class PromotTests see trac/browser/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/test/PromotTests.java.
As a first step the available tests should be studied. Then some of the following tests (simple, more complex) can be implemented.
ProMoT Browser
- simple tests:
- more complex tests:
- testing the import and export functionality of smbl-files (CmdSBMLExport and
- testing the import of CNA-files into ProMoT, see CmdCNAImport
ProMoT Editor
- simple tests:
- more complex tests:
- testing the functionality of the online-checker-system, see trac/browser/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/checker
- testing the docu-generation, see trac/browser/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/docu
- testing the functionality of the variable editor, see trac/browser/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/varedit
ProMoT Explorer
- complex tests:
- testing the gef parser, see trac/browser/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/data/io/gef
- testing import/export of graphml format, see trac/browser/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/data/io/graphml