Comments (6)
Wohoo! Yeah. Will close this one and create a new ticket...
from plone.restapi.
Name Stmts Miss Cover Missing
---------------------------------------------------------------------------
src/plone/restapi/__init__ 2 0 100%
src/plone/restapi/demo/__init__ 0 0 100%
src/plone/restapi/demo/demo 0 0 100%
src/plone/restapi/interfaces 5 0 100%
src/plone/restapi/serializer 73 7 90% 116, 122, 190-197
src/plone/restapi/services 8 2 75% 9, 33
src/plone/restapi/testing 17 0 100%
src/plone/restapi/tests/__init__ 0 0 100%
src/plone/restapi/tests/test_documentation 135 0 100%
src/plone/restapi/tests/test_error_handling 50 30 40% 37-48, 52-65, 72-84, 91-113
src/plone/restapi/tests/test_serializer 73 0 100%
src/plone/restapi/tests/test_services 75 0 100%
src/plone/restapi/tests/test_setup 13 0 100%
src/plone/restapi/tests/test_utils 41 0 100%
src/plone/restapi/utils 25 0 100%
---------------------------------------------------------------------------
TOTAL 517 39 92%
from plone.restapi.
Tests using a z2.ZSERVER
fixture, like those on PLONE_RESTAPI_FUNCTIONAL_TESTING
, don't seem to be picked up by coverage.py
.
I'm assuming this is because coverage.py
can't trace threads that are instantiated using the low-level thread
interface instead of the higher level threading
module (see coveragepy#244 and ZServer.PubCore.ZRendezvous
).
So... Functional tests using a Z2 server and the requests
module won't have their coverage recorded.
from plone.restapi.
Yep. That seems to be the problem. This is not limited to plone.restapi though.
from plone.restapi.
You can enforce a minimun of tests to be covered with nose:
--cover-min-percentage=DEFAULT
Minimum percentage of coverage for tests to pass [NOSE_COVER_MIN_PERCENTAGE]
See:
http://nose.readthedocs.org/en/latest/plugins/cover.htm
from plone.restapi.
Test coverage is back to 96% with #238, but the rest will probably take some (tedious) work. I support you might want to close this anyway… :)
from plone.restapi.
Related Issues (20)
- `@querystring-search` endpoint doesn't validate input sufficiently
- Allow PRs from forks to run tests? HOT 5
- Batch request to /@registry fails with json serilazation issue HOT 1
- Patching /@registry value array raises WrongType error HOT 2
- Show only metadata_fields in GET content HOT 4
- plone.autoform.directives.read_permission doesn’t work in restapi HOT 4
- Document steps to contribute that are specific to plone.restapi HOT 2
- Is expansion an endpoint or a usage technique? HOT 3
- Registering the expandable elements as adaptors defeats the purpose if the service instantiates them directly
- plone.restapi 9 HOT 19
- Add Spanish translation HOT 1
- CI Badge HOT 2
- Github Actions are skipped HOT 3
- Undeprecate comma separated expansion parameters HOT 8
- Undeprecate token parameter from vocabularies endpoint HOT 9
- Code that seems to do nothing HOT 2
- Drop Python 3.7 support HOT 1
- jwt_auth PAS plugin is active without being installed HOT 9
- Global Site tabs should also be customizable with customize_entry HOT 5
- navigation_base_url is not also used here HOT 2
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 plone.restapi.