-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adding integration tests in frontend #6
Comments
Hey @krishnaacharyaa I would like to work on this issue. I can deliver the proposed solution by 14/Dec/23(ETA). |
Sure @shmbajaj, one setback you might face is, there are no unit tests which are already written, that would ease the process, kindly consider that one thing, you can suggest or take insights on how #72 assignee takes care of it. And for the naming conventions we can follow similar to #54 p.s: The way we have thought of going forward for "integration test" is unit test without mocking db calls or any other services for that matter, trying to clarify upfront, so that we are in the same boat. For any further discussion let's connect via discord channel :) |
Update13/12/23: Setup Jest with TypescriptUsing TDD or Automation Testing approach to ensure everything works as expected, Three types of testing can be done:
Will be using Action Plan
14/12/23: Setup Jest with Typescript
15/12/23: Setup Jest with Typescript
Reference |
Off topicLoved the way you have kept everyone in the loop with these on point updates, @shmbajaj! Makes it easier for someone like me who hasn't been around lately. Thanks :) |
Update01/01/2024
Integration testing tests the collaboration of multiple components. It is considerably more difficult than unit testing, as we would have to for example mock data from the server. |
@shmbajaj, Thank you for the precise update, just a request, if possible can we aim at both unit and integration test cases, we can take help of some other person from the discord ... As i feel it would take more time in the unit tests, but i feel it can go hand in hand,
p.s: You can refer to the backend unit test and integration tests closeness... you'll get an idea. |
Integration tests without mocking become E2E tests, as per my knowledge. I believe it is hard to draw fine line between these types of tests, at this point. |
Arre then which is integration tests? XD
True that!! @chinmaykunkikar @kuldeepjambhulkar any inputs? |
Suggestion: Let's do integration and unit testing together and mock features where required and use local backend for api calls, What say? |
In my opinion it's purely unit test, but we need to start from somewhere, let's go ahead... |
Agreeing... |
|
Hey @chinmaykunkikar @krishnaacharyaa @kuldeepjambhulkar |
Hi @bajajcodes, Please let us know if you can complete this, else will re-assign to potential candidate :) |
…t , fixed unit test due to new changes
Presently we do not have any test cases written in the application which ensures security, as the project grows in the size there are high chances that the application can break. So adding relevant test cases would be very handy.
Mostly likes framework like jest can be used to achieve this, if any other framework which is better than this, we can discuss and proceed.
The text was updated successfully, but these errors were encountered: