Comments (4)
@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.
Yes. Perhaps using coverage.py
from pyshacl.
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.
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)
- Shacl does not seem to work on rdflib.Dataset() HOT 1
- Unable to see the validation result in pyshacl HOT 2
- How to ensure subject is not a sh:BlankNode when validating a owl:Class in an ontology? HOT 4
- owl:imports for data graph is hardcoded to false HOT 2
- pySHACL uses deprecated API `pkg_resources` HOT 4
- Trouble with qualified value shape HOT 6
- Failed to catch violations with properties that are not defined HOT 8
- Is a shape (whether node or property) restricted to one instance of sh:not? HOT 5
- Multiple sh:nots causing strange validation results HOT 2
- Multiple sh:xones on one sh:NodeShape grouping member shapes causing unexpected validation results
- `sh:entailment` and `pyshacl --advanced` HOT 1
- `sh:severity` on shapes linked by `sh:node` HOT 2
- `_evaluation_path` length is not configurable HOT 3
- [Discussion] Higher performance "remote" validation HOT 1
- Difference between PySHACL and TopBraid SHACL API HOT 1
- Message: Node ex:**** does not contain a value in the set: ['Literal("true" = True, datatype=xsd:boolean)'] HOT 7
- pySHACL 0.26.0 is not yet on PyPI HOT 3
- PyShacl generating validation errors against Shape Graph generated from Data Graph HOT 3
- SHACL Advanced Feature sh:SPARQLRule --> sh:construct HOT 3
- Time required for shape validation HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyshacl.