Closed nicholaschiasson closed 3 years ago
LGTM!
@DorianGray If I may ask, what is the release cycle for this project and when could we expect this merged?
as soon as someone else takes a look. We're ready to make a release now...we were waiting on a fix from someone but they seem to have disappeared
we will do a release soon. Apologies for not merging - new baby 4 days ago, no time to test
Okay no problem! That sounds good. And congratulations on the new baby! 🎂
looks good. One question; if a config-file is provided and the Luacov option is not enabled, what should happen?
if a config-file is provided and the Luacov option is not enabled, what should happen?
I am of the mind that it should have no effect and just execute without luacov, and not just because it is the easiest implementation.
I think it makes sense from a workflow perspective to be able to have the path to your coverage config file configured but still run the framework without running coverage. Say you clone of a project without an adequate development environment (no Luacov installed), it's easier to just run without --coverage
, or with --no-coverage
, or remove coverage = true
from the busted config file, than it is to remove the setting for coverage config file. That's my opinion at least.
@nicholaschiasson that seems fair.
Can you add a test? I think if you add a test to the cl_spec.lua
file that runs a basic test with a luacov config file specified with a custom output name, and then verify that the output files are actually generated, then that should be good enough.
@Tieske It looks like the github actions environment is not able to create files. Maybe there's still something I'm doing wrong. Do you have any suggestions?
@nicholaschiasson instead of in the local directory store it as a temp file?
am I right that the problem wasn't creating the files, but that LuaCov wasn't installed?
am I right that the problem wasn't creating the files, but that LuaCov wasn't installed?
That's right that was it :sweat_smile: Took me far too long to realize!
Thx @nicholaschiasson !
Closes #659
Adding support for a cli or config option
coverage-config-file
to allow setting the path the your luacov config file, in case it is not at.luacov
in the project root.