julian / virtue Goto Github PK
View Code? Open in Web Editor NEWA modern, extensible, unittest-compliant test runner.
License: MIT License
A modern, extensible, unittest-compliant test runner.
License: MIT License
โ t jsonschema.tests.test_jsonschema_test_suite.TestDraft6.test_ipv6_validation_of_IPv6_addresses_zone_id_is_not_a_part_of_ipv6_address julian@Air
Traceback (most recent call last):
File "/Users/julian/.dotfiles/.local/share/virtualenvs/jsonschema/lib/python3.9/site-packages/virtue/locators.py", line 98, in locate_by_name
return self.locate_in(obj)
File "/Users/julian/.dotfiles/.local/share/virtualenvs/jsonschema/lib/python3.9/site-packages/virtue/locators.py", line 122, in locate_in
raise ValueError(
ValueError: Can't determine the appropriate way to load <function _Test.to_unittest_method.<locals>.fn at 0x1074fbdc0>
(where that test method is dynamically generated in jsonschema's test suite)
But trial loads that just fine.
Bit easier to address failures if they appear at the end of terminal scrollback.
As trial does, to e.g. support https://github.com/Julian/trial-osxnotifier
This needs more thinking but rather than explicitly hardcoding module > case > method, it should be nicer to just have "group > tests" and then encode module as being a group which has tests, a case as also being a group which has tests, and then methods as tests with no subelements.
This'd allow collecting other nicer groupings transparently.
A test runner is a different environment than "normal" Python execution.
Even though Python's warnings defaults have long-since erred on the side of silencing warnings (so that end-users don't see warnings they can't address), test writers generally should see and address warnings in their code as part of suite execution.
Virtue should by default cause warnings to trigger errors during test execution.
Rather than continuing to litter virtue's package with fixture/sample files, there should be a simple interface like:
with virtue.tests.sample_suite(test_foo=FAIL, test_bar=FAIL, test_baz=SUCCEED)
or the like, to dynamically plop these down for the test that needs them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.