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

feat: new experience to get coverage report #1785

Open
wants to merge 49 commits into
base: main
Choose a base branch
from

Conversation

AkashKumar7902
Copy link
Member

@AkashKumar7902 AkashKumar7902 commented Apr 6, 2024

Related Issue

Closes: #1735

Describe the changes you've made

Add coverage data to test report
coverage data will be appended for applications written in:

  • golang
  • node
  • python
  • java

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Please let us know if any test cases are added

Please describe the tests(if any). Provide instructions how its affecting the coverage.

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

A clear and concise description of it.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Screenshots (if any)

Original Updated
original screenshot updated screenshot

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
@AkashKumar7902 AkashKumar7902 marked this pull request as draft April 6, 2024 13:32
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
@AkashKumar7902 AkashKumar7902 changed the title feat: add coverage data for go in report feat: add coverage data in report Apr 7, 2024
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
@AkashKumar7902 AkashKumar7902 marked this pull request as ready for review April 10, 2024 19:22
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
AkashKumar7902 and others added 11 commits April 15, 2024 13:27
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
…nge NYC_CLEAN to CLEAN

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
…nction

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
AkashKumar7902 and others added 4 commits May 20, 2024 15:41
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Copy link
Member

@charankamarapu charankamarapu left a comment

Choose a reason for hiding this comment

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

Please address the comments, I haven't yet reviewed complete logic but these are the initial comments.

cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
pkg/graph/schema.resolvers.go Outdated Show resolved Hide resolved
pkg/service/replay/replay.go Outdated Show resolved Hide resolved
pkg/service/replay/replay.go Show resolved Hide resolved
pkg/service/tools/coverage.go Outdated Show resolved Hide resolved
@charankamarapu
Copy link
Member

charankamarapu commented May 20, 2024

Please resolve the pipeline failure too.

> move coverage.go from tools to service/replay pkg
> define enum for language flag
> refactored code

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Copy link
Member

@charankamarapu charankamarapu left a comment

Choose a reason for hiding this comment

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

Please address the comments

cli/provider/cmd.go Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/test.go Outdated Show resolved Hide resolved
pkg/service/replay/replay.go Outdated Show resolved Hide resolved
pkg/service/replay/replay.go Show resolved Hide resolved
pkg/service/replay/replay.go Outdated Show resolved Hide resolved
pkg/service/replay/replay.go Show resolved Hide resolved
pkg/service/replay/replay.go Outdated Show resolved Hide resolved
pkg/service/replay/utils.go Show resolved Hide resolved
AkashKumar7902 and others added 11 commits May 27, 2024 15:56
> change error logs of coverage related tasks to warn, and error logs of coverage tool to debug
> refactor
> don't change command instead created a new field in config struct named CoverageCommand in which command prepended with coverage tool is put
> log error if language detected doesn't match with language provided

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Copy link
Member

@charankamarapu charankamarapu left a comment

Choose a reason for hiding this comment

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

Please address the comments. Everything else looks good to me.

cli/provider/cmd.go Outdated Show resolved Hide resolved
cli/provider/cmd.go Outdated Show resolved Hide resolved
pkg/service/replay/replay.go Show resolved Hide resolved
pkg/service/replay/utils.go Show resolved Hide resolved
AkashKumar7902 and others added 2 commits June 4, 2024 11:17
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.

[feature]: Add code coverage data to keploy test report
2 participants