Login
Testing the Project
Login

The testing process of the project made from three steps:

  1. Compile the code in the debug mode. This tests not only validate the code but also checks the code syntax. This step can be executed by use command:

    nimble debug -y

  2. Compile and execute the unit tests of the project. This step check correctness of some code logic. To run the tests once, type in console:

    nim others/tests.nims 1

  3. Static code analysis with the nimalyzer. Just run it in the main directory of the project: nimalyzer others/nimalyzer.cfg

The code must pass all three steps without any error or warning. In very exceptional cases, some nimalyzer rules can be disabled, but each case considered separately. At this moment, it happens very rarely.