nutter icon indicating copy to clipboard operation
nutter copied to clipboard

is it possible to generate code coverage with nutter ?

Open vinura opened this issue 4 years ago • 8 comments

I am trying integrated UnitTests + Codecoverage and Sonar Cloud. I am looking at a way to generate code coverage reports.

When I tried to run code coverage. Using Code Coverage API like this

` def run_tests():

cov = coverage.Coverage()
cov.start(source=)

TESTS!

cov.stop()
cov.save()
cov.html_report(directory='/dbfs/Users/Vinura/coverage_report')

`

The following happens. It runs the code coverage on cluster root. So is it possible to use nutter to generate code coverage reports?

MicrosoftTeams-image (5)

vinura avatar Dec 03 '20 09:12 vinura

Can you please clarify a bit further, what are the files you want to generate the coverage for? We have considered to provide limited coverage information for notebooks: whether a notebook in a folder has been called by a nutter test.

giventocode avatar Dec 07 '20 18:12 giventocode

In a nutshell, is it possible to get the code coverage metric for the entire project?

Ex - Lines Covered by Tests / Lines in entire project . Is it possible to get the code coverage metric?

This is to set a gate for the pull request.

vinura avatar Dec 08 '20 01:12 vinura

Any update on this feature? Are we able to get code coverage for nutter tests?

renepajta avatar Nov 03 '21 13:11 renepajta

Any update on this feature? a code coverage metric would be really helpful in order to report on the quality of the code

KishanChoudhury avatar Jan 06 '23 11:01 KishanChoudhury

Is there any updates on this issue ?

jugani avatar Aug 30 '23 05:08 jugani

Are there any updates whatsoever or is the project not maintained any more?

arturo-opsetmoen-amador avatar Nov 06 '23 20:11 arturo-opsetmoen-amador