Stargazer
Stargazer is a tool for manual testing UI regressions in a React Native/Expo app. It records screenshots of app screens and displays these in a browser UI for side-by-side comparison.
Usage
To use this tool in your app first install it with npm install --save react-native-stargazer
. Then, follow these steps:
- Configure a routes object which contains all the screens you want to generate screenshots for.
- Provide this routes object to the
Stargazer
app component exported from react-native-stargazer
, along with a stargazerServerUrl
and initialRouteName
prop. - Run the Stargazer server with the command
npm run stargazer:server
. - Run your app with Expo, using your local development setup.
- Once the app launches, start the Stargazer tool.
- Once the screen uploads are finished, stop the Expo and Stargazer servers.
- Run the command
npm run stargazer:build
to build the UI browser output. - You should now have a folder in your project source repo:
stargazer-ui
. This contains the bundled browser UI app. You can preview it with the command npm run stargazer:run
, or deploy it to host for your team or organization.
TODO: Improve documentation.