-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing regression tests #231
Comments
This is redundant with issue #102. The issue is a long task, in progress. |
My intention is to have a picture of what has to be done. As soon as a test file is created, I would edit the above list. Another suggestion is to begin each test file with the test calls in the order the functions are defined in the main file so that it would be easier to check if all function has been checked. I know it is a long task. |
Makes sense. You can edit your list comment, and use the markup - [ ] Unchecked
- [x] Checked |
Note that hull.scad and polyhedra.scad aren't regression tests, but more like demos. I wrote test_hull.scad. Since we don't have a way of doing regression tests for modules, also I think many of those files aren't testable. |
There is another issue: how complete is each test. I am working on geometry.scad and found that around 40% of the functions have no test in the test_geometry,scad. |
We have a script, |
Another issue regarding the regression tests is to assure all arg options are considered in the tests of a function. For instance, test_find_circle_2tangents() in test_geometry.scad miss any test with with arg tangent=true. |
I think this is part of the broader problem of whether tests cover all cases. I am dubious that we can automate assessment of whether regression tests are complete. It's something we just have to check by hand. When I was adding requested regression tests to test_math I noticed several other regression tests that missed edge cases...and I actually found some bugs when I added the missing edge cases. |
Updated run of scripts/func_coverage.py:
|
Done |
Note that hull should actually be fully covered because the main hull calls hull2d and hull3d depending on the dimension of the input. Should we write dummy tests? Recopy the tests? |
Still missing regression test files:
(The regression tests:
should be called
The text was updated successfully, but these errors were encountered: