Menu

Autotest-mathmaker

Nicolas Hainaux
There is a newer version of this page. You can find it here.

The script autotest-mathmaker contains many many tests to check if the core objects behave the way they should. This script is in the main directory and the tests are in maintenance/autotest.

By default, it will perform the whole set of tests, but it is possible to let it perform only certain units.

For each wrong test, it can display the wrong result and the expected one.

It can be used in many ways :

  • Before adding any new class or method, write the matching tests. Once the tests are written, so we know what we'll expect from the new code, then we can begin to write this new code
  • When finding a bug, the first step is to reproduce it as a supplementary test, which of course will be OK when the bug is gone ; then work on the code until the bug is gone.
  • While hunting for a bug, check regularly which changes bring the modifications in autotest-mathmaker. Sometimes it will prevent from adding a bug elsewhere.
  • Be sure to check that autotest-mathmaker is all OK before pushing a new commit to origin

Debugging features can be used in combination with autotest-mathmaker.

autotest-mathmaker --help will show you all useful options.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.