Ignoring result
See original GitHub issueI want to implement a pytest.ignore()
that will behave as pytest.skip()
, but without any visuals. ie, no yellow S
, or xx skipped
in the ui.
Using pytest with testinfra I end up with a ton of tests that I don’t want to show in the UI because of parameterize. I asked at https://stackoverflow.com/questions/62079737/pytest-ignore-test-not-just-skip, and have looked around but can not find any indication that this is possible.
I can submit a pr on this, but I want to see if it will get accepted first, and/or if there are any deep reason why this can not be implemented.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Ignoring rule results
On the result tab, locate the rule result that contains the rule exception to ignore. Right-click the rule result and select Ignore Result....
Read more >How do I ignore an error returned from a Rust function and ...
1 Answer 1 · Don't use the Result : let _ = failing_function();. The function will be called, but the result will be...
Read more >What is the best way to ignore a `Result`? - help
Another option is to use let _: Result<(), _> = delete(); which generalizes to other cases like let _: Result<bool, _> = blah();...
Read more >A simple crate to make ignoring rust Results safe and easy
ignore () -> () method that consumes a Result<T,E> coming out of a function and always returns () – regardless of what the...
Read more >ignore-result for rust
ignore () function to Result instances that ignores both the Ok and Err variants of the result, silencing compiler warnings about unused errors ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Im -1 on that one
ah thanks, yes that’s an exact duplicate – let’s continue the discussion there