Skip to content

BUILD FAILED - Test coverage for at least one module is below 70% #2

@gopinathankm

Description

@gopinathankm

I tried with Python 3.6.3 Anaconda 5.0.1 and Python 2.7.12 default with Ubuntu 16.04 LTS
In both the cases ended up in Build Failure.

Can anybody helpme?
(venv) gopinathankm@gopinathankm-Lenovo-G400 ~/venv/flask-example-master $ pyb
PyBuilder version 0.11.12
Build started at 2017-11-29 08:33:11

[INFO] Building flask-example version 0.1.2
[INFO] Executing build in /home/gopinathankm/venv/flask-example-master
[INFO] Going to execute tasks: install_dependencies, analyze, publish
[INFO] Installing all dependencies
[INFO] Processing batch dependency 'coverage'
[INFO] Processing batch dependency 'pyassert'
[INFO] Processing batch dependency 'pyfix'
[INFO] Processing batch dependency 'flask'
[INFO] Installing plugin dependency flake8
[INFO] Executing pyfix unittest Python modules in /home/gopinathankm/venv/flask-example-master/src/unittest/python
[INFO] Running 2 pyfix tests
[INFO] Executed 2 pyfix unittests
[INFO] All pyfix unittests passed
[INFO] Executing flake8 on project sources.
[INFO] Collecting coverage information
[WARN] coverage_branch_threshold_warn is 0 and branch coverage will not be checked
[WARN] coverage_branch_partial_threshold_warn is 0 and partial branch coverage will not be checked
[INFO] Executing pyfix unittest Python modules in /home/gopinathankm/venv/flask-example-master/src/unittest/python
[INFO] Running 2 pyfix tests
[INFO] Executed 2 pyfix unittests
[INFO] All pyfix unittests passed
[WARN] Module 'helloworld.webapp' was not imported by the covered tests
[WARN] Test coverage below 70% for helloworld: 0%
[WARN] Test coverage below 70% for helloworld.services: 20%
[WARN] Overall coverage is below 70%: 14%
[INFO] Overall coverage branch coverage is 100%
[INFO] Overall coverage partial branch coverage is 100%

BUILD FAILED - Test coverage for at least one module is below 70%

Build finished at 2017-11-29 08:33:37
Build took 26 seconds (26201 ms)
(venv) gopinathankm@gopinathankm-Lenovo-G400 ~/venv/flask-example-master $

With Regards
Gopinathan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions