Giter Club home page Giter Club logo

Comments (3)

PAHdb avatar PAHdb commented on May 20, 2024

The coverage report generated by Travis does not only include the coverage of pypahdb, but also of pytest and all its dependencies. Adding --source pypahdb to the coverage command fixes this.
[update] It looks like the coverage is the same, but Travis is quicker in generating the number.

from pypahdb.

mattjshannon avatar mattjshannon commented on May 20, 2024

Apparently we can consolidate our fixtures and place them in conftest.py, which will make them available (automatically) to all of the test_*.py files. Neat!

Refs:
https://stackoverflow.com/questions/34466027/in-py-test-what-is-the-use-of-conftest-py-files
https://docs.pytest.org/en/latest/fixture.html#conftest-py-sharing-fixture-functions

from pypahdb.

PAHdb avatar PAHdb commented on May 20, 2024

Currently the tests are making use of unittests, which does not work well with pytests' fixtures. Since unittests uses classes, commonality between tests can be captured in class properties.

Test coverage is now above 80%, which should be sufficient for know.

from pypahdb.

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.