Currently, there are three test routines:
Travis CI (for building test)
Icon generation at build final stage (test if it… just works somehow)
Regression tests (together with Travis CI, but currently accepting to fail)
Wouldn’t be good/useful to provide unit and functional tests for synfig-core and synfig-studio code?
1 Like
ice0
January 24, 2020, 7:00pm
2
Sure. I plan to integrate a code coverage tool, and I’m pretty sure that we will find unused code or code that needs to be tested
@KonstantinDmitriev what do you think?
1 Like
Of course it would be awesome to have unit-tests where applicable. Unfortunately, I has no experience in writing any, but I’ve heard it really takes time. On the other hand that compensates in future with better stability and cleaner mind. ^___^
Please consider, that we also have some tests for ETL - https://github.com/synfig/synfig/tree/master/ETL/test
Execute those commands in ETL directory to run them:
autoreconf -if
./configure
make distcheck
See this script for details - https://github.com/synfig/synfig/blob/master/autobuild/synfigstudio-release.sh
ice0
January 30, 2020, 10:17am
5
for CMake tests also can be run using make test
command
1 Like
ice0
January 30, 2020, 2:04pm
7
I need to check synfig-core/test. I will close it, after do all the checks (or fix it).
1 Like
The regular build takes its own time.
When you want to test (make check
under autotools), it would build (if necessary) and run all the written test programs.
We could use a framework like CppUnit or do manually as it’s currently “done”
1 Like
I am leaving final decision on how it is better implement to @ice0 . In any case I appreciate any contributions in that direction! ^___^