Comments (4)
Hi! How exactly do you think mimic would do that? We could pass a setup
and a teardown
function to run_tests
but... you could also just call those two funtions before and after the call to run_tests
. So one wouldn't gain anything by that.
Or you are talking about running setup
before each test and teardown
after each test. This is different, but can also already achieve easily today with mimic: in the closure run_test
you pass to run_tests
you can easily call those two functions.
So I'm not sure how or if mimic can even help here :/
from libtest-mimic.
Ok, I think I better understand what libtest-mimic
actually delivers; everything except the test runner. :-)
Yeah, I'm looking for a way to do before-all setup and before-all teardown, around the integration tests. It turns out, this is pretty hard to accomplish, and not built in. Maybe I could achieve it by calling libtest
to do the actual test-runner work.
from libtest-mimic.
That might indeed work. But I really don't know stuff about how to manually run #[test]
tests. So I guess I can't help you there :/
from libtest-mimic.
I think there is nothing to do here anymore. So I'm closing this for now.
from libtest-mimic.
Related Issues (18)
- JSON output HOT 6
- Multiple threads with `--test-threads` HOT 2
- Capture output by default HOT 15
- Ability to supress printing per-test outcome HOT 2
- Various improvements and features for future development HOT 4
- Vulnerability CVE-2022-23639 HOT 1
- Runtime ignoring HOT 9
- no_std support? HOT 3
- libtest-mimic v 0.6 docs are broken on docs.rs HOT 11
- Incompatible with IntelliJ Rust HOT 1
- mixed_bag::terse_output test fails HOT 1
- Run target function with no test harness HOT 3
- feature request: Add timeout support HOT 1
- Public API for filtering without running
- Coverage data not generated on Windows when using `libtest_mimic::Conclusion::exit` HOT 2
- ExitCode logic inverted HOT 2
- Switch from termcolor to anstream, like clap? HOT 1
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 libtest-mimic.