Comments (6)
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.
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.
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.
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.
can be closed, I guess?
from beastling.
Yep, thanks.
from beastling.
Related Issues (20)
- CLDF dataset loading pains HOT 19
- "The Yule model is not particularly suitable for linguistic analyses, however it is currently the best BEAST has to offer." HOT 7
- ASR tests fail HOT 33
- log_params duplicates log entries. HOT 1
- Unify file handling HOT 2
- Remove the dependency on clldutils HOT 2
- Remaining synonym issues
- Hack BEAST XML using DOM notation? HOT 2
- OSError: File name too long, instead of being interpreted as list HOT 1
- Make TreePrior.add_state_nodes use state instead of beastxml
- LogNormal Relaxed Clock parameterized by “variance”, is actually “stdev in log space”
- PyYAML, an indirect dependency, needs Python>3.4 HOT 4
- Document and Unify Exit Codes
- Should base-clocks/models/priors be abstract?
- Report could use slightly more clever templating
- Should __distribution__ be a property of all clocks?
- 'BinaryModel' object has no attribute 'share_params' HOT 11
- Binary CTMC binarised=True
- BEASTling does not clean up concept names with commas properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beastling.