Posts

Showing posts from December, 2022

Release 0.4 Final

In this release, I contributed in the  binari project, creating unit test cases for React components. These test cases are testing the components from the user's point of view, instead of internal implementation details. For example, I have tests to ensure that some action happens when a user clicks on a button. Here is the command to execute the test cases npm run test The test cases test the components as the users commonly interact with them. I create test suit for each component. This project taught me how to write effective test cases. I also learned to look from the user's perspective when testing the application, ensuring that the components are working as expected. If they do not, I know where the problem is, thanks to the test cases. I created a PR for the test cases. At the moment I am still waiting for some feedback for my PR.  Issue: https://github.com/BrandonArmand/Binari/issues/77 PR: https://github.com/BrandonArmand/Binari/pull/78

Release 0.4 Progress

In this project, I have started creating test cases for react components. I have test cases for react components called rending snapshots and test cases for react components called clearfix. I am stuck on expanding the test cases to cover the whole function. I have managed how test cases work in react components. I am planning a different approach to looking at examples of test cases for react components. This way, I can see how it can be done. From there, I can figure out how I want the test cases to be done. This is done using test suites, and then I use it or test for each test case.