Comments (14)
In my opinion it's purely unit test, but we need to start from somewhere, let's go ahead...
We'll later get the things sorted 🙂
from wanderlust.
Update
13/12/23: Setup Jest with Typescript
Using TDD or Automation Testing approach to ensure everything works as expected,
as changes are done.
Three types of testing can be done:
- Unit testing (tests component functionality)
- Integrating testing (tests the collaboration of multiple components)
- E2E testing (tests the system as a whole)
Will be using jest
and react-testing-library
for unit and integration tests,
and cypress
for E2E tests.
Action Plan
- Installing and Configure testing libraries/packages for
test
env. - Initiate Automation testing by covering essentials/critical parts of app.
- Drive TDD method of development by setting up feature PRs.
- TODO: Deterministic Action Plan (more to be added)
14/12/23: Setup Jest with Typescript
- Failed to setup jest, react-testing-library with typescript, will try to finish by tomorrow.
15/12/23: Setup Jest with Typescript
- Raised PR to setup jest, rtl for react-ts project using vite
PR #84
Reference
from wanderlust.
Off topic
Loved 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 :)
from wanderlust.
A unit test is not a unit test if it uses these external dependencies - that would rather be an integration test.
from wanderlust.
Hey @chinmaykunkikar @krishnaacharyaa @kuldeepjambhulkar
I request you guys please review the PR for Integration Test of HomePage route/component.
from wanderlust.
Hey @krishnaacharyaa I would like to work on this issue.
I can deliver the proposed solution by 14/Dec/23(ETA).
from wanderlust.
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 :)
from wanderlust.
Update
01/01/2024
- Started evaluating code and integration test for frontend.
TODO:
List integration tests- Integration Tests:
/
route/add-blog
route/details-page/:title/:postId
route
What Next:
3 PR's for integration testing on listed routes.-
PR1: feat:test-home-route
ETA: expected 3/01/23, actual 06/01/23 delayed because of personal commitments.
#96 -
PR2: feat:add-blog-route
ETA: 6/01/23 -
PR3: feat:details-page/:title/:postId-route
ETA: 10/01/23
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.
-React Testing Library Tutorial
from wanderlust.
@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,
- unit tests - mocks
- integration - actually lets it happen without mocking
p.s: You can refer to the backend unit test and integration tests closeness... you'll get an idea.
from wanderlust.
@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,
- unit tests - mocks
- integration - actually lets it happen without mocking
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.
Integration tests with mocking become Unit tests, as frontend components are lesser.
I believe it is hard to draw fine line between these types of tests, at this point.
from wanderlust.
Integration tests without mocking become E2E tests, as per my knowledge.
Integration tests with mocking become Unit tests, as frontend components are lesser
Arre then which is integration tests? XD
In my opinion with mocking is unit tests, without mocking is integration and without mocking testing the overall application without separating it as frontend and back-end is E2E which is 1 for the entire application...
I believe it is hard to draw fine line between these types of tests, at this point.
True that!!
@chinmaykunkikar @kuldeepjambhulkar any inputs?
from wanderlust.
Arre then which is integration tests? XD In my opinion with mocking is unit tests, without mocking is integration and without mocking testing the overall application without separating it as frontend and back-end is E2E which is 1 for the entire application...
Suggestion: Let's do integration and unit testing together and mock features where required and use local backend for api calls, What say?
from wanderlust.
In my opinion it's purely unit test, but we need to start from somewhere, let's go ahead... We'll later get the things sorted 🙂
Agreeing...
https://appliedtechnology.github.io/protips/mocking
from wanderlust.
Hi @bajajcodes, Please let us know if you can complete this, else will re-assign to potential candidate :)
from wanderlust.
Related Issues (20)
- [ENHANCEMENT] Dark theme for both signin and signup page
- [ENHANCEMENT] Add GitHub Desktop Contribution Instructions
- Enhance Footer HOT 1
- [FEATURE] Implement Post Like HOT 2
- [FEATURE] Search button on the landing page/home page
- Adding Button (Scroll top) ⬆️ HOT 3
- [FEATURE] <title> Weather conditions of a place
- [FEATURE] Auto Commenting Feat for Issue Creation HOT 1
- [FEATURE] Auto Commenting feature for PR Raised HOT 1
- [FEATURE] ADDIGN
- [FEATURE] Auto Commenting feature for PR Merged HOT 1
- [FEATURE] Workflow for Closing Old Issues HOT 1
- [FEATURE] Workflow for closing Old PRs HOT 1
- [FEATURE] Auto Commenting when an Issue is Closed HOT 3
- [ENHANCEMENT] Limit the payload that user can submit to the web-application
- [ENHANCEMENT] Styling the scrollbar
- [BUG] <Adding anchor tag in the logo> HOT 6
- [ENHANCEMENT] <Adding social media icons on the footer> HOT 2
- Create a feedback form page on the right bottom with fixed styling
- [BUG] <signup page> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wanderlust.