Skip to content
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

Improve unit/integration tests coverage for web code #298

Open
2 of 17 tasks
souhaib-benbouzid opened this issue Apr 18, 2021 · 0 comments
Open
2 of 17 tasks

Improve unit/integration tests coverage for web code #298

souhaib-benbouzid opened this issue Apr 18, 2021 · 0 comments
Labels
good first issue Good for newcomers task Task

Comments

@souhaib-benbouzid
Copy link
Member

souhaib-benbouzid commented Apr 18, 2021

Description

if you:

  • go to ./web folder
  • then run yarn test:cov:watch inside it
  • then open ./web/coverage/lcov-report/index.html file in your browser

you will see that some directories are marked as red, which means test coverage is below 80%. you can also see the same results in codecov.io

In this task we will make sure that all dirs are marked green ✅.

Check List

Integration tests for pages:

  1. add integration test for ./web/src/apps/main/pages/landing.
  2. add integration test for ./web/src/apps/main/pages/faq. (de4ae32)
  3. add integration test for ./web/src/apps/main/pages/not-found.
  4. add integration test for ./web/src/apps/main/pages/projects.
  5. add integration test for ./web/src/apps/main/pages/articles.
  6. add integration test for ./web/src/apps/main/pages/learn.

Unit tests for components:

  1. add unit test for ./web/src/components/link-v2.
  2. add unit test for ./web/src/components/loading.
  3. add unit test for ./web/src/apps/main/components/authors.
  4. add unit test for ./web/src/apps/main/components/card.
  5. add unit test for ./web/src/apps/main/components/contributors.
  6. add unit test for ./web/src/apps/main/components/footer. (6fec148)
  7. add unit test for ./web/src/apps/main/components/markdown.
  8. add unit test for ./web/src/apps/main/components/navbar.
  9. add unit test for ./web/src/apps/main/components/sidebar.
  10. add unit test for ./web/src/apps/main/components/speed.
  11. add unit test for ./web/src/apps/main/components/theme.

Additional Comments

Please create new PR for each task.

Also, it would be great for transparency if you comment below which task you want to take up.

@ZibanPirate ZibanPirate changed the title Add unit tests for web folder Improve unit tests coverage for web code Apr 18, 2021
@ZibanPirate ZibanPirate added the good first issue Good for newcomers label Apr 18, 2021
@ZibanPirate ZibanPirate changed the title Improve unit tests coverage for web code Improve unit/integration tests coverage for web code Apr 18, 2021
@ZibanPirate ZibanPirate moved this to Backlog in DzCode i/o Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers task Task
Projects
Status: Backlog
Development

No branches or pull requests

2 participants