Git Product home page Git Product logo

Comments (5)

Midnighter avatar Midnighter commented on May 30, 2024

http://stackoverflow.com/a/12579625

from memote.

ChristianLieven avatar ChristianLieven commented on May 30, 2024

The principle of test ordering is explained here: http://pytest-incremental.readthedocs.io/runner.html#how-to-order-tests

But of course we'd like to set the test-dependencies ourselves, instead of basing them on the import graphs, like said plugin.

Here is an example, of a hypothetical 'Test Pathway':
a) The model's biomass reaction is functional.
Model > Test Biomass Production > Pass > Termination of this Pathway

b) The model's biomass reaction is incomplete.
Mode > Test Biomass Production > Fail > Test Production of Biomass Precursors in Default Condition > Fail > Test Production of Biomass Precursors with all exchanges opened > Pass > Termination of this Pathway

I see the following benefits of 'Test Pathways':

  • Shorter testing time for models that are well curated.
  • Adaptive output that highlights a model's problem areas without spamming 'irrelevant' test results.

from memote.

Midnighter avatar Midnighter commented on May 30, 2024

I have to think more about test dependencies since it goes against general testing practices. General consensus is to test everything all the time but then again this is a very specialized case. We might want to test everything all the time, though, such that the data is generated and complete even for failing cases.

from memote.

ChristianLieven avatar ChristianLieven commented on May 30, 2024

I know we've talked about how it is better to just record all tests results no matter what, but just to provide closure to the discussion I saw that it is indeed possible to do that for which the issue was created:

incremental testing - test steps
Sometimes you may have a testing situation which consists of a series of test steps. If one step fails it makes no sense to execute further steps as they are all expected to fail anyway and their tracebacks add no insight. Here is a simple conftest.py file which introduces an incremental marker which is to be used on classes[.]

https://docs.pytest.org/en/latest/example/simple.html

from memote.

Midnighter avatar Midnighter commented on May 30, 2024

Final agreement that test suite is fast enough and we need to run tests for result generation.

from memote.

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.