Skip to content

Closes #434: Make reference browser testable with Raptor/tp6#460

Merged
csadilek merged 2 commits into
mozilla-mobile:masterfrom
csadilek:issue-434
Jan 23, 2019
Merged

Closes #434: Make reference browser testable with Raptor/tp6#460
csadilek merged 2 commits into
mozilla-mobile:masterfrom
csadilek:issue-434

Conversation

@csadilek

Copy link
Copy Markdown
Contributor

This just introduces an Activity for Raptor to launch. We'll save the extras provided in the intent in a test configuration (similar to our BuildConfig) and pass it along to the GeckoRuntimeSettings.

There are small changes/enhancements needed in Raptor for this to work, but this PR is not blocked on them.

Using a separate Activity puts this out of the main execution path and allows us to land this on master. A separate branch wouldn't be practical as we want to run Raptor tests against latest changes and permanently having to keep a testing branch up-to-date isn't ideal. So, keeping the required code here as minimal as possible.

@csadilek
csadilek requested a review from a team as a code owner January 22, 2019 23:34
@csadilek csadilek changed the title Closes #434: Make reference browser testable with Raptor/tp6 WIP: Closes #434: Make reference browser testable with Raptor/tp6 Jan 22, 2019
@csadilek

Copy link
Copy Markdown
Contributor Author

Work (or rather more tests) in progress.

@csadilek csadilek added the 🛑 blocked Issues that are blocked by external causes. label Jan 22, 2019
@csadilek csadilek changed the title WIP: Closes #434: Make reference browser testable with Raptor/tp6 Closes #434: Make reference browser testable with Raptor/tp6 Jan 23, 2019
@csadilek csadilek removed the 🛑 blocked Issues that are blocked by external causes. label Jan 23, 2019
@csadilek

Copy link
Copy Markdown
Contributor Author

Unblocking this as it's ready to land. I tested both speedometer and page load tests with Raptor. Also made sure we can still process customtab and share intents.

The TestConfig will be enhanced when we're working on #435 to compare to WebView. We also need to discuss bringing back a WebView build variant. I think this would make comparisons much easier as opposed to testing WebView using a different app.

@pocmo pocmo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice! :)

Comment thread app/src/main/java/org/mozilla/reference/browser/ext/TestConfig.kt Outdated
Comment thread app/src/main/java/org/mozilla/reference/browser/BrowserTestActivity.kt Outdated
@csadilek
csadilek merged commit 235d153 into mozilla-mobile:master Jan 23, 2019
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