-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(chore) Update test scripts and their related documentation #754
Conversation
Size Change: -320 kB (-10%) 👏 Total Size: 2.81 MB
ℹ️ View Unchanged
|
c0b9469
to
4ec54b6
Compare
To run tests for a specific package, pass the package name to the `--filter` flag. For example, to run tests for `esm-patient-conditions-app`, run: | ||
|
||
```bash | ||
yarn turbo test --filter="esm-patient-conditions-app" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@openmrs/esm-patient-conditions-app
I know it matches, but I believe better to put the whole name in the md.
You can also run the matching tests from above in watch mode by running: | ||
|
||
```bash | ||
yarn turbo test:watch -- login.test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Above is login and here is login.test, can we keep it the same?
A beginner might confuse.
Requirements
For changes to apps
If applicable
Summary
This PR updates existing
test
scripts to leverage the following things:-
cross-env
for cross-platform compatibility-
turbo
's--color
flag, so that tests output gets rendered with colour.- UTC timezone, so that tests run repeatably regardless of the user's timezone.
Additionally, it also updates the README with instructions for how to run tests in various different ways.
Screenshots
None
Related Issue
None