-
Notifications
You must be signed in to change notification settings - Fork 344
start work on a testing plan for devtools #5
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
Conversation
Plan LGTM (though sounds like you're not ready to merge if you're going to add a test). |
Yup, I'd like to try and get one test in, then iterate on that - add one or two more, and make sure that the common parts of the tests are abstracted out a bit (build the framework once we have a better idea of what the tests will look like). |
OK, this PR now contains the integration testing framework and the first two integration tests. test 1: start the devtools app and verify that you can switch pages Ready for review; comments welcome. After landing, I'll follow up with a PR that runs the tests on travis (they just run via |
test/fixtures/logging_app.dart
Outdated
|
||
void main() { | ||
log('starting app'); | ||
print('starting app'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can the print calls be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to keep them just for the sake of making it easier to debug this app in some circumstances.
test/src/chrome.dart
Outdated
|
||
//const String defaultPath = '/Applications/Google Chrome.app'; | ||
const String defaultPath = '/Applications/Google Chrome Canary.app'; | ||
//const String bundlePath = 'Contents/MacOS/Google Chrome'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you meant to leave it at Chrome not Canary before checkin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup! Will update.
test/src/chrome.dart
Outdated
WipConnection get wipConnection => _wip; | ||
} | ||
|
||
// TODO(devoncarew): I'm not sure this class is necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably remove this class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
A rough draft of a testing plan for this project. I'd expect to use
package:test
to write tests, and each test would have the setup described in the markdown file. Comments welcome, and I'll work on adding an actual test as part of this PR.@jacob314 @DanTup