tests: make CoinTests selectable and observable - #46
Conversation
2877a6e to
a5d28b5
Compare
23a2866 to
521a1be
Compare
a5d28b5 to
740acf3
Compare
740acf3 to
5deae22
Compare
Lgt2x
left a comment
There was a problem hiding this comment.
This is nice, I'm fine with this contribution, but I would prefer to wire Coin tests to Ctest instead of investing dev time into a custom test runner. ctest has these features integrated with -N -R etc. This way, we can also expose the COIN_BUILD_TEST option in FreeCAD and have them running in the test suite if we want to.
Also, there are many tests named initialize that could be prefixed.
| std::fprintf(stderr, "[RUN %zu/%zu] %s (%s:%d)\n", | ||
| i + 1, tests.size(), tc.name, tc.file, tc.line); |
There was a problem hiding this comment.
Running bin/CoinTests --max-tests 10 shows [RUN 1/325]. I would expect here for it to show [RUN 1/10], what do you think? Same for --filter.
Makes sense to me, I'll see about updating this to CTest. |
Add lightweight CoinTests command-line selection and progress reporting:
This is standalone test infrastructure and is independent of the renderer stack.