callstack / reassure

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

[FEATURE] Coverage = false and Watch #510

Open marcozciuffini opened 5 days ago

marcozciuffini commented 5 days ago

Is your feature request related to a problem? Please describe. When testing one component whilst devving, I find the coverage in the project to get in the way I also would like it to auto run on save of the file, similar to how we can in jest.

that way I could run yarn reassure --testMatch=${path-to-file} --watch --coverage=false just to

Describe the solution you'd like an option of --coverage=false or --collectCoverageFrom=${path-to-file} to help me to view the issues without scrolling past coverage and an option of watch to autoRun the command on save of the file/files

mdjastrzebski commented 4 days ago

Are --coverage=false/--collectCoverageFrom Jest flags? I am considering adding a feature where reassure would foward all passed options to underlying jest bin. I wonder if that would solve your issue.

marcozciuffini commented 4 days ago

they are jest flags, and that sounds like it would perfectly 👍🏼 thanks for the quick response