scania-digital-design-system/sdds

Improvement - "Spec tests fail, low test coverage"

Closed this issue · 1 comments

Describe current situation
When I run the "npm test" for components from the current master branch, it reposts that 3 of 9 tests are failed.
The code covered by these 9 tests is less then 25%.

Describe the improvement
Add unit-testing step to your CI/CD pipeline. Add more tests to improve the test coverage.

If applicable, please provide steps to reproduce

  1. Clone repo.
  2. Run "npm test"
  3. Run "stencil test --spec --coverage" to view the coverage report.

AB#1209

There is no current setup for test for @scania/components. This is something we'll focus on after the release of @scania/tegel