New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not close browser on test failures (optionally) #6
Comments
not sure how it helps On 26 June 2014 23:30, Daniel Hahler notifications@github.com wrote:
Anatoly Bubenkov |
You are right that My use case has been when I was not using I was under the impression that using Thanks for your feedback (and this pytest plugin!). |
I see where it came to you now... it looks like: def pytest_bdd_step_error(request, feature, scenario, step, step_func, ignore slaveoutput related stuff if you don't need pytest-xdist things so On 27 June 2014 21:55, Daniel Hahler notifications@github.com wrote:
Anatoly Bubenkov |
Thanks, that looks very useful. I have tried applying it to my non-bdd-based conftest, but
I have tried to base it on the recipe from http://pytest.org/dev/example/simple.html#making-test-result-information-available-in-fixtures, both with a |
After all, it might be very useful to have a helper fixture in pytest-splinter, which would take a screenshot on failures with browser tests. |
show me some code On 10 July 2014 00:45, Daniel Hahler notifications@github.com wrote:
Anatoly Bubenkov |
with this approach you have to directly depend on the browser instead of On 10 July 2014 00:51, Daniel Hahler notifications@github.com wrote:
Anatoly Bubenkov |
Thanks, that works. But I had to move it into the/my It might work with Thanks again. Do you think |
yes i agree we should provide that feature On 10 July 2014 01:24, Daniel Hahler notifications@github.com wrote:
Anatoly Bubenkov |
I am just experimenting with pytest-splinter, and have already used the following method before:
This uses a rather new feature of py.test (
yield.fixture
), instead of adding a finalizer to therequest
.Do you think it makes sense to add such a feature to pytest-splinter?
I am currently wrapping pytest-splinter's
browser
fixture with this method and have defined the fixturesplinter_close_browser
to return False, which appears to work.The text was updated successfully, but these errors were encountered: