Implement unit tests
ID0000248: This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Id | Category | View | Date Submitted | Updated | Due Date |
---|---|---|---|---|---|
ID0000248 | Siril | public | 2018-04-10 | 2018-10-30 | - |
Reporter | vinvin | Assigned To | - | Resolution | open |
Priority | low | Severity | major | Reproducibility | N/A |
Platform | - | OS | - | OS Version | - |
Product Version | - | Target Version | 0.9.11 | Fixed in Version | - |
Description:
Automatically testing the algorithms, maybe on each commit or every day, to find regressions and validate a version more easily. This implies two hard things: setting-up a unit test environment that works fine and writing unit tests or even wider tests.
Running these tests on 32 or 64 bit ARM, wouldn't hurt, in addition to the usual amd64.
Solution with meson and criterion:
There is a unit test framework integrated in meson: criterion.
To use it, install meson 0.53 at least, if not available in the OS, use pip:
# apt install python3-pip
# pip3 install meson
Then install criterion, or build it if not available.
Run tests with $ ninja test
.
Edited by Vincent Hourdin