Skip to content
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

[6.x] automatically capture source code on failure #819

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

browner12
Copy link
Contributor

If an assertion has been made against the source code, capture the source code for analysis.

In #707 I added the ability to store the source code from the Browser.

#705 was my original attempt where I stored the source code after every test. This was closed with the thought being storing the source for every test was excessive.

This PR finds a good middle ground, and will only automatically store the source on failures where an assertion against the source has been made.

That means either the assertSourceHas() or assertSourceMissing() assertions must be called for the source to be auto-stored.

if an assertion has been made against the source code, capture the source code for analysis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants