Skip to content

Commit

Permalink
Reduce 'reassure meassure' usage to 'reassure' (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Jastrzebski <[email protected]>
  • Loading branch information
thymikee and mdjastrzebski authored Jul 14, 2022
1 parent 417dcf6 commit d09718a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ For more examples look into our [test example app](https://github.com/callstack/
In order to measure your first test performance you need to run following command in terminal:

```sh
yarn reassure measure
yarn reassure
```

This command will run your tests multiple times using Jest, gathering render statistics, and will write them to
Expand Down Expand Up @@ -151,11 +151,11 @@ BASELINE_BRANCH=${BASELINE_BRANCH:="main"}

# Gather baseline perf measurements
git checkout "$BASELINE_BRANCH";
npx reassure measure --baseline
npx reassure --baseline

# Gather current perf measurements & compare results
git checkout "$CURRENT_BRANCH";
npx reassure measure
npx reassure
```

### CI integration
Expand Down Expand Up @@ -334,7 +334,7 @@ You can use available environmental variables in order to alter your test runner
Example:

```sh
TEST_RUNNER_PATH=myOwnPath/jest/bin yarn reassure measure
TEST_RUNNER_PATH=myOwnPath/jest/bin yarn reassure
```

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions examples/native-expo/reassure-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ BASELINE_BRANCH=${BASELINE_BRANCH:="main"}

# Gather baseline perf measurements
git checkout "$BASELINE_BRANCH";
yarn reassure measure --baseline
yarn reassure --baseline

# Gather current perf measurements & compare results
git checkout "$CURRENT_BRANCH";
yarn reassure measure
yarn reassure
4 changes: 2 additions & 2 deletions examples/native/reassure-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ BASELINE_BRANCH=${BASELINE_BRANCH:="main"}

# Gather baseline perf measurements
git checkout "$BASELINE_BRANCH";
yarn reassure measure --baseline
yarn reassure --baseline

# Gather current perf measurements & compare results
git checkout "$CURRENT_BRANCH";
yarn reassure measure
yarn reassure
2 changes: 1 addition & 1 deletion packages/reassure-measure/src/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function showFlagsOuputIfNeeded() {
console.error(
'❌ Reassure: measure code is running under incorrect Node.js configuration.\n' +
'Performance test code should be run in Jest with certain Node.js flags to increase measurements stability.\n' +
'Make sure you use the Reassure CLI and run it using "reassure measure" command.'
'Make sure you use the Reassure CLI and run it using "reassure" command.'
);
} else if (config.verbose) {
console.log('✅ Reassure: measure code is running under correct node flags');
Expand Down
6 changes: 3 additions & 3 deletions packages/reassure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ For more examples look into our [test example app](https://github.com/callstack/
In order to measure your first test performance you need to run following command in terminal:

```sh
yarn reassure measure
yarn reassure
```

This command will run your tests multiple times using Jest, gathering render statistics, and will write them to
Expand Down Expand Up @@ -151,11 +151,11 @@ BASELINE_BRANCH=${BASELINE_BRANCH:="main"}

# Gather baseline perf measurements
git checkout "$BASELINE_BRANCH";
npx reassure measure --baseline
npx reassure --baseline

# Gather current perf measurements & compare results
git checkout "$CURRENT_BRANCH";
npx reassure measure
npx reassure
```

### CI integration
Expand Down

0 comments on commit d09718a

Please sign in to comment.