Skip to content

test(dashboard): add and improve tests to achieve >80% code coverage [#326]#399

Merged
youngtaekiim merged 5 commits intoeclipse-pullpiri:mainfrom
LGSI-KarumuriHari:main
Dec 22, 2025
Merged

test(dashboard): add and improve tests to achieve >80% code coverage [#326]#399
youngtaekiim merged 5 commits intoeclipse-pullpiri:mainfrom
LGSI-KarumuriHari:main

Conversation

@LGSI-KarumuriHari
Copy link
Contributor

📝 PR Description
test(dashboard): add and improve tests to achieve >80% code coverage

  • Added comprehensive unit tests for src/tools/Dashboards/src/components
  • Enhanced test coverage for src/tools/dashboard components
  • Ensured all critical paths and error handling are covered
  • Code coverage for src/tools/dashboard now exceeds 80%

🔗 Related Issue
Closes #326

🧪 Test Method
cd src/tools/dashboard
npm install
npm run test:coverage

Screenshot:
image
✅ Checklist
[✅] Code conventions are followed
[✅] Tests are added/modified
[✅] Documentation is updated (if necessary)

- Added comprehensive unit tests for Overview.tsx and ImageWithFallback.tsx
- Enhanced test coverage for src/tools/dashboard components
- Ensured all critical paths and error handling are covered
- Code coverage for src/tools/dashboard now exceeds 80%
@LGSI-KarumuriHari
Copy link
Contributor Author

Hey @daeyoung-jeong-lge @youngtaekiim @leeeunkoo
Please review and merge these changes
thanks!!

@daeyoung-jeong-lge
Copy link
Contributor

@chaehee-lim This PR is for testing Dashboard which is built with React. So, could you check this PR? Thanks in advance. :-)

@youngtaekiim youngtaekiim requested a review from Copilot December 17, 2025 00:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive unit tests to the dashboard component to achieve >80% code coverage. The testing infrastructure is set up using Vitest and React Testing Library, with coverage thresholds enforced for lines, statements, functions, and branches.

Key Changes:

  • Added testing infrastructure and dependencies (Vitest, React Testing Library, Jest types)
  • Documented test commands and coverage requirements in README
  • Established 80% coverage thresholds across all metrics

Reviewed changes

Copilot reviewed 2 out of 112 changed files in this pull request and generated no comments.

File Description
src/tools/dashboard/README.md Added documentation for running tests and coverage reporting
package.json Added testing dependencies for Vitest and React Testing Library

@chaehee-lim
Copy link
Contributor

@youngtaekiim I've confirmed. Merge please.

@youngtaekiim youngtaekiim merged commit 135fda5 into eclipse-pullpiri:main Dec 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Test Dashboard according to the derived plan

5 participants