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 Library unit test coverage #489

Closed
29 tasks
kim-tsao opened this issue Jun 9, 2021 · 2 comments
Closed
29 tasks

Improve Library unit test coverage #489

kim-tsao opened this issue Jun 9, 2021 · 2 comments
Assignees
Labels
area/library Common devfile library for interacting with devfiles area/test-automation Test automation for devfile specification and library
Projects

Comments

@kim-tsao
Copy link
Contributor

kim-tsao commented Jun 9, 2021

Is your feature request related to a problem? Please describe.
The numbers are subject to change but as of today, we have the following coverage:

  • generators.go (65.9%)
  • utils.go (91.1%)
  • configurables.go (29.0%)
  • apiVersion.go (89.5%)
  • content.go (85.7%)
  • context.go (28.6%)
  • fakecontext.go (0.0%
  • fs.go (100.0%)
  • schema.go (87.5%)
  • helper.go (93.3%)
  • attributes.go (100.0%)
  • commands.go (97.4%)
  • command_helper.go (80.6%)
  • component_helper.go (100.0%)
  • errors.go (0.0%)
  • options.go (91.7%)
  • project_helper.go (100.0%)
  • components.go (94.2%)
  • events.go (80.0%)
  • header.go (100.0%)
  • parent.go (50.0%)
  • projects.go (97.4%)
  • volumes.go (100.0%)
  • workspace.go (50.0%)
  • versions.go (100.0%)
  • parse.go (74.3%)
  • resolutionContext.go (100.0%)
  • sourceAttribute.go (88.2%)
  • writer.go (75.0%)

Describe the solution you'd like
Our test coverage report shows we have gaps in testing for a number of Library modules. We should try to achieve 100% if possible.

Describe alternatives you've considered

If we don't do this, this is technical debt and will impact the QA of our project

Additional context
Latest test coverage reports can be found in the Actions > Validate PRs workflow

@kim-tsao kim-tsao added area/library Common devfile library for interacting with devfiles area/test-automation Test automation for devfile specification and library labels Jun 9, 2021
@kim-tsao kim-tsao self-assigned this Jun 9, 2021
@kim-tsao kim-tsao added this to Under consideration in Sprint 202 via automation Jun 9, 2021
@kim-tsao kim-tsao moved this from Under consideration to In progress in Sprint 202 Jun 9, 2021
@kim-tsao kim-tsao moved this from In progress to To do in Sprint 202 Jun 10, 2021
@kim-tsao
Copy link
Contributor Author

Waiting on mock functions to be available: #383

@elsony elsony removed this from To do in Sprint 202 Jun 17, 2021
@elsony elsony added this to Under consideration in Sprint 203 via automation Jun 17, 2021
@elsony elsony moved this from Under consideration to To do in Sprint 203 Jun 17, 2021
@elsony elsony removed this from To do in Sprint 203 Jul 7, 2021
@elsony elsony added this to Under consideration in Sprint 204 via automation Jul 7, 2021
@elsony elsony moved this from Under consideration to To do in Sprint 204 Jul 7, 2021
@elsony elsony removed this from To do in Sprint 204 Jul 30, 2021
@elsony elsony added this to Under consideration in Sprint 205 via automation Jul 30, 2021
@elsony elsony moved this from Under consideration to To do in Sprint 205 Jul 30, 2021
@elsony elsony removed this from To do in Sprint 205 Aug 20, 2021
@elsony elsony added this to Under consideration in Sprint 206 via automation Aug 20, 2021
@elsony elsony moved this from Under consideration to To do in Sprint 206 Aug 20, 2021
@elsony elsony added this to Under consideration in Sprint 207 via automation Sep 15, 2021
@elsony elsony removed this from To do in Sprint 206 Sep 15, 2021
@elsony elsony moved this from Under consideration to In progress in Sprint 207 Sep 15, 2021
@elsony elsony moved this from In progress to To do in Sprint 207 Sep 15, 2021
@johnmcollier johnmcollier removed this from To do in Sprint 207 Oct 5, 2021
@johnmcollier johnmcollier added this to Under consideration in Sprint 208 via automation Oct 5, 2021
@johnmcollier johnmcollier moved this from Under consideration to To Do in Sprint 208 Oct 5, 2021
@johnmcollier johnmcollier removed this from To Do in Sprint 208 Oct 21, 2021
@johnmcollier johnmcollier added this to Under consideration in Sprint 209 via automation Oct 21, 2021
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 209 Oct 21, 2021
@johnmcollier johnmcollier added this to Under consideration in Sprint 215 via automation Feb 24, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 215 Feb 24, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 216 via automation Apr 5, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 215 Apr 5, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 216 Apr 5, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 216 Apr 12, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 217 via automation Apr 12, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 217 Apr 12, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 217 Apr 28, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 218 via automation Apr 28, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 218 Apr 28, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 218 May 19, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 219 via automation May 19, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 219 May 19, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 219 Jun 9, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 220 via automation Jun 9, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 220 Jun 9, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 220 Jun 30, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 221 via automation Jun 30, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 221 Jun 30, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 221 Jul 21, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 222 via automation Jul 21, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 222 Jul 21, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 222 Aug 16, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 223 via automation Aug 16, 2022
@johnmcollier johnmcollier removed this from Under consideration in Sprint 223 Sep 6, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 224 via automation Sep 6, 2022
@kim-tsao
Copy link
Contributor Author

we have codecov now

Sprint 224 automation moved this from Under consideration to Done Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/library Common devfile library for interacting with devfiles area/test-automation Test automation for devfile specification and library
Projects
No open projects
Development

No branches or pull requests

1 participant