-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fix broken source_path handling. Explicitly test for coverage files #3284
Fix broken source_path handling. Explicitly test for coverage files #3284
Conversation
e3cea69
to
6715334
Compare
6715334
to
eadbc16
Compare
@@ -1,6 +1,7 @@ | |||
module OffsetArraysExt | |||
|
|||
using HasExtensions, OffsetArrays | |||
import HasExtensions: foo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did lol :)
Pkg.test(TEST_PKG.name; coverage=true) | ||
pkgdir = Base.locate_package(Base.PkgId(TEST_PKG.uuid, TEST_PKG.name)) | ||
# No coverage files being generated? | ||
@test_broken TEST_PKG.name * ".cov" in readdir(pkgdir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What fixed this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage files now have a PID, so maybe just not looking for the correct files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also pkgdir here is the source file not the src dir
It's not clear to me why this didn't fail in #3281 .Urgh.. it was picking up a function and string-ing the name 🤦♂️This fixes a rather nasty missing local var bug introduced by #3281 that broke coverage generation in
Pkg.test
, and reinstates and expands testing for coverage files where they should and shouldn't be generated