Intersection of Performance testing, Regression testing and snapshot testing
Reassure works by measuring render characteristics – duration and count – of the testing scenario you provide and comparing that to the stable version. It repeats the scenario multiple times to reduce the impact of random variations in render times caused by the runtime environment. Then it applies statistical analysis to figure out whether the code changes are statistically significant or not. As a result, it generates a human-readable report summarizing the results and displays it on the CI or as a comment to your pull request.
yarn add --dev reassure
//jest.setup.ts
configure({testingLibrary: 'react-native'});
Run it with
yarn reassure
yarn reassure --baseline
This will write baseline.perf file against which it will compare in subsequent runs
yarn reassure
Source Code