Comments (2)
Looks like coveralls has never run for us.
In our .travis.yml
we are not creating a coverage report. So we should call bin/createcoverage
. But it we add this part, like we do for the addons we create, and we call it, it quits immediately because it expects there to be a bin/test
that is a python script, and for us it is a shell script.
I briefly tried the next python code for bin/test, but then coverage tells us that we have 100% test coverage within the three lines of thebin/test
script itself, which is not quite what we are after...:
import subprocess
import sys
sys.exit(subprocess.call('./bin/nosetests'))
If I hack the createcoverage script to run bin/nosetests
, it goes better. It even says 100% coverage, but, well, we are only testing our one line __init__.py
....:
Our hooks.py
file is not tested at all like this, because it is not called. The original bin/test
script does call it, but in this setup we would only call bin/nosetests
.
Anyway, if we want coverage reports, the first step would be:
add an option to the createcoverage recipe so we can tell it to run bin/nosetests instead of bin/test.
Or does anyone know an alternative to createcoverage that we can use?
from bobtemplates.plone.
Fixed.
from bobtemplates.plone.
Related Issues (20)
- Documentation on docs.plone.org outdated HOT 1
- Allow users to select the `plonetheme.barceloneta` version
- Refacture addon.py to use base_prepare_renderer, like all sub templates do.
- Refacture tests to not have so many manuel settings
- XML model based content-types do not have a class object and thus neither an interface
- theme_barceloneta: The filename, directory name, or volume label syntax is incorrect HOT 2
- view template set wrong view name when using unserscore in name
- Does not work on Windows HOT 2
- update barceloneta_theme version HOT 3
- improve namespace support HOT 2
- Missing comma after `PLONE_FIXTURE` import in bobtemplates/plone/addon/src/+package.namespace+/+package.name+/testing.py.bob HOT 2
- ERROR: tox config file (either pyproject.toml, tox.ini, setup.cfg) not found HOT 1
- zpretty all xml files
- Subtemplates are not working properly on windows
- Errors with `bobtemplates.plone` with version `>=6.0` caused by missing `tox.ini` file
- Ready for Plone 6 final?
- support for not dotted package, how to create a egg from plonecli
- Clarification: `theme` - `theme_barceloneta` - `theme_basic` HOT 1
- Improve CI by testing generated addon's directly in CI not as nested test in Tox HOT 1
- Broken `plone_basic` scaffolding? HOT 1
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 bobtemplates.plone.