caMicroscope icon indicating copy to clipboard operation
caMicroscope copied to clipboard

Sign up test function and automated testing with git action workflows

Open gbengaoluwadahunsi opened this issue 3 months ago • 2 comments

Motivation I created this pull request to implement automated testing for the functions in the application. Automated testing helps ensure the reliability and correctness of the codebase by automatically verifying the behavior of the app. This ensures that any change made to the codebase do not introduce regressions or break existing functionality.

I tested this workflow by creating a signup js test file and made a PR to the develop branch.

Testing The Sign up function was tested using Jest, a JavaScript testing framework. In addition to unit testing the individual components of the Sign up function, integration tests were also performed to verify the interaction between different parts of the application. The tests were run locally using Jest and also as part of GitHub Actions workflows to ensure consistent and reliable testing across different environments.

one(249)

two(250)

three (251)

four (252)

gbengaoluwadahunsi avatar Mar 30 '24 22:03 gbengaoluwadahunsi

Hello @birm , I have been able to implement this tasks below

Testing

Write tests for some existing caMicroscope functions After writing tests, set up github actions’ test suite to run these tests automatically

I have tested it and it worked , now anyone making a PR to the develop or master will have their functions reviewed by Git actions.

gbengaoluwadahunsi avatar Mar 30 '24 22:03 gbengaoluwadahunsi

Hello @birm, I am currently working on writing more test functions, I would need your feedback on the above so it might guide me, thanks.

gbengaoluwadahunsi avatar Apr 06 '24 06:04 gbengaoluwadahunsi