This MD is meant for people who want to develop for the Toolchain FitNesse Plugin.
The Toolchain Plugin can't be run on it's own. To run the Toolchain Plugin it's required to be included in a project with the original FitNesse.
The README.MD shows all current features. This README needs to be updated when a new feature is developed.
To overwrite or add new responders, symbols, decorators in the FitNesse Toolchain you need to adjust the PraegusPluginFeatureFactory class.
Responder is the operation that the FitNesse Toolchain can perform for you. The Responder is indicated in the URL such as "localhost:9090/FrontPage?editPage" where "?editPage" is the operation.
Symbols is a special type of syntax that the user can use in the edit page. The user can for example use "!VersionChecker" to add a version checker table on the current page. HSAC symbols was used as a example for creating this wiki symbol.
The written Java code needs to be tested. The Java testing framework "JUNIT" is used for unit testing the code. The created unit tests are located in the "test/java/nl/praegus/fitnesse" folder. The Praegus repo has an integrated build that runs the tests.
- Notation
- Use Pascal casing when naming a Class and a Interfaces.
- Use Camel casing when naming a Variables and a Methods.
- Use Snake casing when naming a Constants and a Test.
-
Enters
- Don't add unnecessary enters, but place them in places to provide a better overall picture.
-
Spaces
- Place spaces where it's necessary. For example do not write an if statement like this: “if(newValue!=null)” but like this “if (newValue != null)“.
The test name has to describe the goal of the test. For example; "When [explain what happens in the test] then [explain the expected result]".
To create a clear layout you first need to set up al the necessary variables. Place after that the functions/executions. And finally the expected result of the test.