Giter Site home page Giter Site logo

Comments (4)

ashleysommer avatar ashleysommer commented on June 12, 2024

@nicholascar Do you mean code coverage stats in the sense of what proportion of code is touched during testing? That is something I've had in mind for a while, I can include it in the next release.

from pyshacl.

nicholascar avatar nicholascar commented on June 12, 2024

Yes. Perhaps using coverage.py

from pyshacl.

ashleysommer avatar ashleysommer commented on June 12, 2024

Pycharm has coverage.py capabilities built in, I'm just using that for now.
As part of the 0.9.9 release I've fixed some coverage issues, added a bunch more tests, and got reported coverage up to 84%.
I've manually added a coverage tag to the README with "84%" hardcoded in the tag. If we want a dynamically updating one, we will need to deploy the coverage test to an online service like Travis, where we can always point to the results of the most recent coverage test run.

from pyshacl.

wrobell avatar wrobell commented on June 12, 2024

If the project recommends use of pytest, then it can show coverage after running unit tests. Just put something like the following into the setup.cfg project

[pytest]
addopts=--cov=pyshacl

[coverage:report]
show_missing=1
partial_branches=1

from pyshacl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.