callstack / reassure

Performance testing companion for React and React Native
https://callstack.github.io/reassure/
MIT License
1.26k stars 28 forks source link

[FEATURE] Run single Reassure test #498

Closed yakupdurmus closed 4 months ago

yakupdurmus commented 4 months ago

Isn't there a way to run a single test?

When I look at the options, it doesn't seem to support it.

I want to run a single test.

For example

yarn reassure ./__tests__/screens/Homepage.perf-test.tsx'

It is also possible to run Jest test like this:

npx jest './__tests__/screens/HomePage.test.tsx' -t

mdjastrzebski commented 4 months ago

@yakupdurmus Interesting idea. We currently support --testMatch option, modelled after Jest. You can use it to match a single file or a glob.

Does that match your use-case, or is the some benefit of just providing file path? Would you be open to submitting a PR for that?

yakupdurmus commented 4 months ago

Thanks for your answer --testMatch worked for me.

yarn reassure --testMatch __tests__/HomePage.perf-test.tsx