Conversation
|
Thanks for the pull request. I am not eager to integrate this functionality: it has nothing to do with logging and really the two crates should just compose, similar to how it works (or is supposed to work) with |
|
I understand the hesistation; sadly this starts to become a lot of boilerplate for every test; especially for async tests, having to write something like starts to feel pretty cumbersome, not to mention that I have to replace every instance of Up to you though, feel free to close if you disagree. |
I think the ideal would be listing each test "layer", ala (in whatever order necessary). I think #46 may get us somewhere there. Yes, still boilerplate, but the declarative and obvious-to-understand-what-is-happening kind, if there is such a thing. |
Description
This adds support for using rstest with test_log, by simply wrapping the
#[rstest]macro in the same way that test_log wraps the#[test]macro. The syntax forrstestis a little different, but not unreasonably so. We just need to desugar this:into this:
I put everything behind a feature flag so that folks who aren't using
rstestdon't have to worry about it.Testing done