You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a while not submitting a PR anymore, I noticed a couple days ago that for my new PR, all of the parts of code only tested via the Pluto session did not appear as covered anymore despite being so in the previous CI run (a few months back).
Today as part of another PR I did think it could be related to recent versions of Pluto defaulting to Malt.jl rather than Distributed to run notebook code.
This commit simply set the flag to use distributed instead of Malt and indeed my code coverage went back up to around 95% correctly considering all of the code being only tested as part of a non-interactive Pluto session.
Just leaving this here in case someone else does run Pluto sessions as part of testing and saw the CI coverage drop.
The text was updated successfully, but these errors were encountered:
disberd
changed the title
Running Pluto inside Package tests does not increase code coverage with Malt.jl
Running Pluto with Malt.jl inside CI tests does not update code coverage
Feb 19, 2024
Thanks! This is an intentional difference between Malt and Distributed: Malt does not inherit the command line flags of the parent process, including --code-coverage. Feel free to make a PR like #2774 to allow setting the code coverage flag of worker processes. I think it would be nice if PlutoDevMacros could use Malt
This is not a direct issue to Pluto itself, but I thought it would be good to mention it in case someone else experience this.
I am running non-interactive Pluto sessions as part of CI tests in https://github.com/disberd/PlutoDevMacros.jl
After a while not submitting a PR anymore, I noticed a couple days ago that for my new PR, all of the parts of code only tested via the Pluto session did not appear as covered anymore despite being so in the previous CI run (a few months back).
Today as part of another PR I did think it could be related to recent versions of Pluto defaulting to Malt.jl rather than Distributed to run notebook code.
This commit simply set the flag to use distributed instead of Malt and indeed my code coverage went back up to around 95% correctly considering all of the code being only tested as part of a non-interactive Pluto session.
Just leaving this here in case someone else does run Pluto sessions as part of testing and saw the CI coverage drop.
The text was updated successfully, but these errors were encountered: