Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[#13227] Improve testing docs #13242
base: master
Are you sure you want to change the base?
[#13227] Improve testing docs #13242
Changes from all commits
750715f
2ed6da8
cda09c9
f3c02a8
2c61efc
77211f1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Would it be good to also mention that docker has to be running to do testing?
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.
I think it looks fine.
Just a note—I typically run tests using IntelliJ’s built-in features rather than executing them manually using the terminal. In the test file, I just click the green test button and a task window pops up. In the task window, I will then select to run

unitTests
, since we’ve only been working with unit tests. The screenshot of the intellij window pop-up is attached below:Would it be helpful to add comments for developers who primarily use IDE features? Maybe we could include guidance for popular IDEs like VS Code and IntelliJ.
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.
I think it's useful to show that we need to run
npm run test
for Snapshot Testing. However, I think it would also be great if you could add a hyperlink insnapshot-testing.md
in the "How do we use Snapshot Testing?" section to this part, or perhaps you can add instructions there on which commands we could use. It's a little confusing to newer developers because the given Jest docs link shows a different command (jest --updateSnapshot
).On a side note, it would help me greatly as well since I haven't found the right way to do so with my button PR 🤣
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.
Would it be useful to include a rough approximation of how long the tests will take to run (not just for this but for frontend as well)? I believe some of the tests takes ages to run and it might catch new developers off guard.
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.
I think it might be useful to add some helpful tips if the tests cannot run, for instance, there was a time where I couldn't run my test and I had to do
./gradlew clean build
which then rectified the issue.