Code Monkey home page Code Monkey logo

django-discover-jenkins's People

Contributors

bkonkle avatar camilonova avatar charettes avatar coagulant avatar ctbarna avatar fdintino avatar fxdgear avatar ipmb avatar jazzband-bot avatar jefftriplett avatar jezdez avatar nvbn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-discover-jenkins's Issues

UserWarning: parseable output format is deprecated.

I've just downloaded, installed pylint, discover_jenkins, discover_runner, and configured discover_jenkins according to docs. After I run:

python manage.py test --jenkins

I get results in reports/ but also warning notice after normal django tests:

Creating test database for alias 'default'...

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
Destroying test database for alias 'default'...
[...]pylint/reporters/text.py:79: UserWarning: parseable output format is deprecated. This is equivalent to --msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}  % (self.name, self.line_format))

It's pylint related...

My setup:
discover_jenkins 0.1.1
pylint 1.0.0,
astroid 1.0.0, common 0.60.0
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3]

No pylint.rc on pip?

In PIP version of django-discover-jenkins there is no default pylint.rc in tasks folder as in Your source code. To change this you need to set TEST_PYLINT_RCFILE in settings.py:

TEST_PYLINT_RCFILE = '/path/pylint.rc'

Default tasks broken

In 22754d4 the default runners were renamed, but the actual runners weren't renamed. This breaks the default config.

omit from coverage.rc is ignored

So the high-level issue I want to resolve is to ignore test and migration files from the coverage report. The TEST_COVERAGE_WITH_MIGRATIONS flag isn't working for me (want_file from https://github.com/lincolnloop/django-discover-jenkins/blob/master/discover_jenkins/tasks/with_coverage.py#L93-L94 is never being executed for me because the measured_files list comes in empty anyways), which is okay, because I was planning on using the coverage.rc file anyways.

The problem with that is that the omit is being ignored

https://github.com/lincolnloop/django-discover-jenkins/blob/master/discover_jenkins/tasks/with_coverage.py#L78-L85

It appears that what's happening is that coverage is first processing the config_file, which properly sets the omits. Then, it reads the omit kwarg passed in, which, in my case, is empty. This, however, overwrites it, so it doesn't omit anything.

My current workaround is to put the omits as the folders setting, though the naming is a little strange (though the implementation works):

TEST_COVERAGE_EXCLUDES_FOLDERS = [
        '*/migrations/*',
        '*/tests.py',
        '*/test_*.py',
    ]

So the right affordances are in here to make it work, though it did take me some digging to figure out. I would be glad for a fix for the coverage.rc file to be honored in its entirety, but I would also be happy to just see a caveats in the documentation that omit in the coverage.rc file will be ignored and to use the other settings.

Let me know if I can provide any other information or help on this.

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.