-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use @microsoft/react-native-test-app as the defacto E2E test framework #61
Comments
A summary of a quick discussion @acoates-ms and I had on our needs for React Native Test App. We discussed one of the properties that we wanted to change, "components": {
"myApp1": {
"presentationStyle": "modal",
"moreProps": "values"
},
"myApp2": {
"presentationStyle": "fullScreen",
"moreProps": "differentValues"
},
} React Native Test App uses this property to populate the component list on the home screen. For each entry, there will be a corresponding button that, when pressed, will create a React root view with the provided properties. The issues that we're seeing with the current schema is that:
We therefore propose that "components": [
{
"uuid": "8d3fb241-b963-4f7c-81f2-c6c29d568323",
"appKey": "myApp1",
"presentationStyle": "modal",
"moreProps": "values"
},
{
"uuid": "d67342c0-616d-47e8-b999-0b457bade6d3",
"appKey": "myApp1",
"presentationStyle": "fullScreen",
"moreProps": "differentValues"
}
] With a list, the order is guaranteed. We'll also need to introduce a UUID so they can be uniquely identified for the use case where we want to launch specific components outside of React Native Test App. Another aspect we touched very briefly upon was how React Native Test App uses For reference, we've documented our implementation of the manifest here: https://github.com/microsoft/react-native-test-app/wiki/Manifest-(app.json) |
Would it be possible for C++ based platforms to codegen bindings to controllers instead of using reflection? |
Now allowing the same component to be listed multiple times as well. Implements microsoft/continuity#61 (comment).
Now allowing the same component to be listed multiple times as well. Implements microsoft/continuity#61 (comment).
## [0.0.13](0.0.12...0.0.13) (2020-05-15) ### Bug Fixes * inconsistent component order on home screen ([#83](#83)) ([e0022d9](e0022d9)), closes [/github.com/microsoft/continuity/issues/61#issuecomment-625212973](https://github.com//github.com/microsoft/continuity/issues/61/issues/issuecomment-625212973)
We should adopt @microsoft/react-native-test-app as the de facto test framework for E2E testing. It lets hosts pull in our code, the test framework, and a collection of react-native apps, and stitch them all up into a single test app. And everything is driven from data in the app manifests (test creation/execution).
To make this work, the app needs to express how it should be tested. For examples, what surfaces should the app be run in, and what are the initial props and dev settings to use when running the tests.
These test cases likely belong in the manifest. They should be stripped out when making a production/aggregated manifest, though, as they aren't used on client machines.
The first step is a discussion between @acoates-ms and @tido64 to agree on a manifest schema.
The text was updated successfully, but these errors were encountered: