Git Product home page Git Product logo

Comments (3)

RKrahl avatar RKrahl commented on May 25, 2024

This won't work, I'm afraid. The problem is that I need to record the outcome of test_a so that the dependency marker for test_b can check this result and decide whether to skip or not to skip test_b. The marker does just this: recording the outcome of the respective test in the internal structures of pytest-dependency. So I need it also on test_a.

from pytest-dependency.

RKrahl avatar RKrahl commented on May 25, 2024

Sorry, my last comment was wrong. It could be implemented as you suggest.

However, I don't like this behavior to be the default. I'd prefer to have the dependencies explicitly be marked. Furthermore, this behavior would mean that internal data structures of pytest get modified even for packages that don't even use pytest-dependency, if only pytest-dependency is installed.

I will rather add a configuration switch automark_dependency to be set in the ini file. If set to False, the default, the current behavior will be retained, e.g. dependencies will need to be marked explicitly. If set to True, it will have the same effect as if all test are implicitly decorated with @pytest.mark.dependency().

from pytest-dependency.

azmeuk avatar azmeuk commented on May 25, 2024

The switch would be a pretty good solution indeed!

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.