Coder Social home page Coder Social logo

Comments (9)

IngridFuentes avatar IngridFuentes commented on July 18, 2024

Hey @sunithapatel I want to learn how to create unit tests!! Can I work on this with some guidance? Like if you know a good documentation to start. Thanks!

from frontendstudygroup.github.io.

princiya avatar princiya commented on July 18, 2024

@IngridFuentes good one.
we are using react-testing-library.
https://testing-library.com/docs/react-testing-library/intro/ So this is a good place to get started. Feel free to ask more questions.

from frontendstudygroup.github.io.

princiya avatar princiya commented on July 18, 2024

some useful keywords which will help you with searching useful documentation around this are:

  • unit tests
  • unit tests for react components
  • react testing library DOM test

from frontendstudygroup.github.io.

IngridFuentes avatar IngridFuentes commented on July 18, 2024

@princiya Thank you! I'll take a look

from frontendstudygroup.github.io.

Priyami avatar Priyami commented on July 18, 2024
  • Started to write test cases for the Resources component.
  • Need some feedback.

TestCases

from frontendstudygroup.github.io.

princiya avatar princiya commented on July 18, 2024

@Priyami how did you arrive at the above table?
are you doing some manual testing too?

Also, can you and @IngridFuentes sync on this issue. Since @IngridFuentes too has claimed the issue, I believe she too has some ideas or doing some work. It's better for both of you to talk & coordinate before create PRs to avoid any duplicate work.

from frontendstudygroup.github.io.

Priyami avatar Priyami commented on July 18, 2024

From the above table, we could do manual testing for the Resouce component. so far, I have got five test cases as per the click event functionality on that page. This is a sample table. I would say, we could make each test case automated by the react-testing library or jest.

from frontendstudygroup.github.io.

princiya avatar princiya commented on July 18, 2024

@Priyami thanks for clarifying. I don't think we have capacity for manual testing, or I am not sure who would take turn to run manual tests. If you have thoughts on this, feel free to brainstorm.
But otherwise, using this template to write automated unit test cases for react-testing-library is a great idea.
@IngridFuentes based on how far you are into exploring this unit testing topic, feel free to use this template or come up with your own test cases.
@Priyami incase you plan to write any test cases using react-testing-library, please coordinate with @IngridFuentes .
Happy testing :) 🎉

from frontendstudygroup.github.io.

IngridFuentes avatar IngridFuentes commented on July 18, 2024

Yes, I have a few test cases written, so if you want to show me what you have, so we don't do the same @Priyami :)

from frontendstudygroup.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.