Git Product home page Git Product logo

Comments (5)

Midnighter avatar Midnighter commented on May 24, 2024

I can't believe pytest hasn't had this so far... I would love to use this feature, could you add a simple example to the readme on how to mark dependencies between two tests or is your code still very much in flux?

from pytest-dependency.

RKrahl avatar RKrahl commented on May 24, 2024

Sure I could and should add more documentation, including examples. I don't think that the stability of the API is an issue that could restrain this. The only problem is … well, I need to get around to do it. That is what this open issue is about. I can only work in my spare time on this project.

In the mean time, have I look into the tests. tests/test_02_simple_dependency.py provides pretty generic examples for the basic usage (watch for the multi line string arguments to ctestdir.makepyfile()). tests/test_03_param.py shows how to combine the dependency marks with parameterizing tests. A rather complex example of a real application can be found in another project using pytest-dependency, here: icatproject/python-icat:tests/test_06_ids.py (look out for the comment reading "Enriched versions of testdatafiles and testdatasets, decorated with appropriate dependency markers, …").

from pytest-dependency.

Midnighter avatar Midnighter commented on May 24, 2024

Thank you very much that's really helpful. And believe me, I know the pain of developing something that meets your own high standards in your spare time.

from pytest-dependency.

RKrahl avatar RKrahl commented on May 24, 2024

Obviously, documentation is never finished. Now I wrote something, I hope will cover the basic stuff. At least I believe it's enough to close this issue for now.

@Midnighter: if you got some time, maybe you could have a look at the online documentation and drop some comments. For the package author, it's always difficult to assess what is obvious to the user and what needs more explanations.

from pytest-dependency.

Midnighter avatar Midnighter commented on May 24, 2024

The docs look good to me. Thank you for the addition. I'll let you know if I come across any uncertainties/missing descriptions.

from pytest-dependency.

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.