Giter VIP home page Giter VIP logo

Comments (2)

mauritsvanrees avatar mauritsvanrees commented on May 26, 2024

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....:

schermafbeelding 2015-09-16 om 20 04 56

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.

mauritsvanrees avatar mauritsvanrees commented on May 26, 2024

Fixed.

from bobtemplates.plone.

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.