Skip to content

Be able to re-run a test easily without losing my browser context #335

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

Closed
alan-knight opened this issue Sep 1, 2015 · 0 comments
Closed
Labels
type-enhancement A request for a change that isn't a bug
Milestone

Comments

@alan-knight
Copy link
Contributor

When debugging, I would like to be able to run the tests, or an individual test, over again. For example, suppose I have a failure I want to debug. I run the test with the --pause-at-load feature, turn on stopping at exceptions, ignoring caught exceptions, and any other options I need. It stops, I see that something has the wrong value. Now I want to set a breakpoint a couple of steps earlier to see where that's coming from. Without the test package I would just re-load the page, but that kills the test. So I write down on a post-it where the breakpoint needs to be, kill the test, run it again with that option, set my options again, find the spot for the breakpoint, set it, and run the test.

With the SDK test runner, when I have failures I can run it in a debug mode where the test runs all the way through but the browser doesn't it. I get a report of the failures on the page, and I can open development tools, set my options, and click on any individual report to run a specific test over again. Or I can reload the page and re-run everything.

@nex3 nex3 added the type-enhancement A request for a change that isn't a bug label Sep 1, 2015
@nex3 nex3 added this to the 0.12.6 milestone Oct 22, 2015
nex3 added a commit that referenced this issue Nov 16, 2015
These is useful for #335. It will allow the test runner to detect when
it can pause normal command-line output and present an interface for
re-running tests.

[email protected]

Review URL: https://codereview.chromium.org//1422963004 .
nex3 added a commit that referenced this issue Jan 7, 2016
When the browser is paused at a breakpoint, the runner will now open a
command-line console with a "restart" command that will restart the
current test.

This currently has no tests, due to dart-lang/sdk#25369 and the lack of
a programmatic API for interacting with Observatory. I've tested it
reasonably thoroughly by hand, but it's more likely than the average
feature to have lurking bugs.

Closes #335

[email protected]

Review URL: https://codereview.chromium.org//1561073003 .
@nex3 nex3 closed this as completed in a67318c Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants