Giter Site home page Giter Site logo

Refactor beastrun tests? about beastling HOT 6 CLOSED

lmaurits avatar lmaurits commented on September 6, 2024
Refactor beastrun tests?

from beastling.

Comments (6)

xrotwang avatar xrotwang commented on September 6, 2024

This is already the case now. Using pytest.mark.parametrize will essentially turn each call of the actual test function into a separate test, and report the arguments passed into the test function:

============================================== FAILURES ==============================================
_________________________________ test_beastrun[configs100-<lambda>] _________________________________

configs = ('admin', 'covarion_multistate', 'ancestral_state_reconstruction', 'ascertainment_false')
assertion = <function <lambda> at 0x7fce8fc44f28>
config_factory = <function config_factory.<locals>.make_cfg at 0x7fce8fc43f28>
tmppath = PosixPath('/tmp/[email protected]/pytest-64/test_beastrun_configs100__lamb0')

...

from beastling.

xrotwang avatar xrotwang commented on September 6, 2024

What I did locally - but can push as well - is copying the XML to cwd. This could be cleaned up after successfully passing the test - so whatever is leftover is the XML of the last failure.

from beastling.

lmaurits avatar lmaurits commented on September 6, 2024

Ah, okay, I do see that now! Easily missed amongst the screens of screens output, including long code listings, that pytest gives me right now. But I guess I can put things in setup.cfg to control how verbose it is...

That XML in cwd thing sounds pretty handy!

from beastling.

xrotwang avatar xrotwang commented on September 6, 2024

What I also did was not calling validate_ids right at the end of build_xml, but "manually", in beastrun_tests, after writing and copying the XML.

from beastling.

xrotwang avatar xrotwang commented on September 6, 2024

can be closed, I guess?

from beastling.

lmaurits avatar lmaurits commented on September 6, 2024

Yep, thanks.

from beastling.

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.