-
Notifications
You must be signed in to change notification settings - Fork 46
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
SF#334 Test coverage is incomplete #34
Comments
I started having a look at this one by running Devel::Cover across PDL with
(it took 23 hours on my machine) It reports 4% coverage for blib-lib-PDL-IO-FITS-pm.html, hitting only the BEGIN statements. The tests in IO/FITS/t/fits.t exercise a lot more than that, so something is preventing it from running correctly. I can't figure out how to get Devel::Cover to Do What I Mean, not helped by PDL's archaic test layout. Is trying to generate a coverage report doomed to failure or does someone have a suggestion? |
Thank you for wanting to contribute to this important issue! Ironically, I've been focusing on it myself recently, with getting Test::PDL ready to incorporate into main-PDL. We run coverage tests in our CI on every commit (it's the Coveralls tick or cross). It isn't very quick, but where CI of a fairly complete build (with many or all of the optional builds present) takes about 6 mins (less when ccache is helping), with coverage it's about 8 (less with ccache). I don't know why it would take 23 hours. The canonical way to run coverage tests is You allude to an "archaic" layout of tests. Before I changed it, nearly all the tests were in the top |
Upgrading Devel::Cover from old system version 1.36 to new cpan version 1.44 (and using your CI step) made the cover run in a decent time. (23 hours was a sign that I was doing something wrong, but didn't know what) It reports 4% which is still low if my eyeballs can estimate how much fits.t exercises, but it will have to wait until next week for me to look at it. I think this is now the 28th anniversary of PDL and I assumed that the tests buried in subdirectories were an artifact of it growing organically before CPAN practices converged. If I have any decent ideas on how to handle the optional components, I'll bring it up for discussion. |
Test::PDL is now incorporated into main PDL, under |
I'm starting to think that a blog post using Test::PDL to test whether I truely understand how a |
I can tell you upfront that a |
As a starter for an Advent posting, the newly-incorporated Test::PDL, which I'm using to replace all
... is really good. It checks all types (unless you say not to) and dims are identical, whether
That one was from finding a bug in |
More PDL Advent fodder: make a dataflowing (using the newish
to being:
with the additional indices being non-bolded, and "dummy". Article 1, dummy dims; article 2, dataflow. EDIT I commented on one of Enkidu's PDL posts, asking them if they'd like to be involved. |
From http://sourceforge.net/p/pdl/bugs/334
The text was updated successfully, but these errors were encountered: