Version 14 (modified by steinmet, 16 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 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:
- CmdAddSubclass (done)
- CmdCopyClass (done)
- CmdDelete (done)
- CmdCustomizeUndoRedo
- more complex tests:
- testing the import and export functionality of smbl-files (CmdSBMLExport and CmdSBMLImport)
- testing the import of CNA-files into ProMoT, see CmdCNAImport
ProMoT Editor
- simple tests:
- CmdRename (test that all properties of the current slot are conserved)
- CmdPropagateTerminal
- CmdDrop
- CmdInsertLinkNodeInLinkEdge
- CmdPropagateBusyTerminal
- CmdSetRightStructAdapterType
- more complex tests:
- testing the functionality of the online-checker-system, see source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/checker
- testing the docu-generation, see source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/vizedit/docu
- testing the functionality of the variable editor, see source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/varedit
ProMoT Explorer
- complex tests:
- testing the gef parser, see source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/data/io/gef
- testing import/export of graphml format, see source:/Promot/trunk/promot/src/gui/org/mpg/dcts/promot/viznav/data/io/graphml