Skip to content
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

Added unit testing using jest #11

Merged
merged 5 commits into from
Jun 14, 2024
Merged

Conversation

sauk2
Copy link
Collaborator

@sauk2 sauk2 commented Jun 8, 2024

Closes #7

Summary

Added jest for unit testing. Unit tests can be found in __test__ folder.

Unit testing locally

Run the following command to run the unit tests and code coverage locally.

 npm run test

Signed-off-by: Saurabh Kamat <[email protected]>
@sauk2 sauk2 requested a review from j-rivero June 8, 2024 08:30
Copy link
Contributor

@j-rivero j-rivero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to execute the npm test as part of our CI loop in the GitHub actions. I recommend to give a look into the test.yml in setup.ros and the use of build-and-test.sh script.

@sauk2
Copy link
Collaborator Author

sauk2 commented Jun 11, 2024

We need to execute the npm test as part of our CI loop in the GitHub actions. I recommend to give a look into the test.yml in setup.ros and the use of build-and-test.sh script.

Added a job in test.yml that builds the package and runs unit tests.

@sauk2 sauk2 requested a review from j-rivero June 11, 2024 15:45
@j-rivero j-rivero merged commit 0852966 into gazebo-tooling:main Jun 14, 2024
8 checks passed
@sauk2 sauk2 deleted the feat/unit-tests branch June 15, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit testing of functions using jest
2 participants