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 490 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

officialasishkumar and others added 30 commits December 14, 2023 17:02
* fix: generate config returns after logging error
* refactor: keploy examples
* fix: remove unused code
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
* add serve command in workflow
* refactor: removed replay related unused files
* add:workflow to test single test suites
* fix: added extra fields for sentry

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed unnecessary changes

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: fix merge conflicts

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: addressed the comments

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed unnecessary files

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: fix indentation

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: remove binary

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* refactor: logs in record and test commands
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
* feat: added pipeline test for docker

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: made changes according to the comments

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: added apiTimeout

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed api timeout from record mode

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: update java linux

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: updated java linux and python docker

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Arindam Majumder <arindammajumder2020@gmail.com>
Co-authored-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
* initial commit

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP generic matching algo

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Fixed Handshake-Response Decoding

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* minor fix

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* WIP

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Bug fixes

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Dotnet and java fixes

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* refactor:indent (keploy#1213)

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Removed replay directory  (keploy#1217)

* refactor: removed replay related unused files

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* add:workflow to test single test sets (keploy#1220)

* add:workflow to test single test suites

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* feat: Added extra fields for sentry (keploy#1203)

* fix: added extra fields for sentry

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed unnecessary changes

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: fix merge conflicts

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: addressed the comments

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed unnecessary files

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: fix indentation

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: remove binary

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Updated README

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Fix dco

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Fix in resultSet Decoding

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Removed logs

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Minor Change in Decode

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* refactor:indent (keploy#1213)

* [refactor]: remove unused files (keploy#1218)

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* refactor: logs in record and test commands (keploy#1228)

* refactor: logs in record and test commands

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* feat: add repo options in issue template (keploy#1229)

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Update --feature-request.yaml (keploy#1232)

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* feat: added pipeline tests for docker (keploy#1226)

* feat: added pipeline test for docker

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: made changes according to the comments

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: added apiTimeout

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: removed api timeout from record mode

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: update java linux

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* fix: updated java linux and python docker

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.com>
Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* Updated Documentation.

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* fix: updated docker alias in keploy.sh (keploy#1242)

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* refactor:concat strings for error logs(keploy#1248)

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* feat: added writers-program repo. (keploy#1243)

Signed-off-by: Arindam Majumder <arindammajumder2020@gmail.com>
Co-authored-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* refactor:add keploy generated tests in gitignore (keploy#1249)

Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* changed logger to debug for config error

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

* debug statement instead of Warn

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>

---------

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: Arindam Majumder <arindammajumder2020@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Co-authored-by: Shivam Sourav Jha <60891544+shivamsouravjha@users.noreply.github.com>
Co-authored-by: Asish Kumar <87874775+officialasishkumar@users.noreply.github.com>
Co-authored-by: Pranshu Srivastava <37413698+PranshuSrivastava@users.noreply.github.com>
Co-authored-by: Shubham Bajpai <shbajpai@vmware.com>
Co-authored-by: Anjali Anupam <2019024@iiitdmj.ac.in>
Co-authored-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.com>
Co-authored-by: Arindam Majumder <109217591+Arindam200@users.noreply.github.com>
Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
…xits (keploy#1256)

* fix: ignore the eof logs occuring after exiting user app

Signed-off-by: Sarthak160 <rocksarthak45@gmail.com>

* refactor: change name of the hook function

Signed-off-by: Sarthak160 <rocksarthak45@gmail.com>

---------

Signed-off-by: Sarthak160 <rocksarthak45@gmail.com>
* feat: Docker support for Keploy installation on Darwin

Signed-off-by: ananupam <2019024@iiitdmj.ac.in>

* refactor: oneClick and example

Signed-off-by: ananupam <2019024@iiitdmj.ac.in>

* refactor: checker for docker volume

Signed-off-by: ananupam <2019024@iiitdmj.ac.in>

* refactor:check for docker context

* refactor:context fix

---------

Signed-off-by: ananupam <2019024@iiitdmj.ac.in>
Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.com>
* debug: adds debug logs for the filter mocks

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
Signed-off-by: ananupam <2019024@iiitdmj.ac.in>
* solved halting execution due to keploy config error

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* solved halting execution due to errors in keploy-config

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* solved halting execution due to errors in keploy-config

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* implemented passthrough in postgres parser

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* added continue

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* removed unnecessary packages

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

---------

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>
Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
* fix: runs the commands using the -c flag of sh

the sh shell provides a flag to run multiple commands from a single shell cmd. So using this we will be able to use the parsing of script cmds of shell

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>

---------

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
* fix: remove binary match

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add in memoryDb in test mode

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: merge conflicts

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: add binary matching with benchmark

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: remove mongo changes

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

* fix: remove print statements

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>

---------

Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Signed-off-by: charankamarapu <kamarapucharan@gmail.com>
…y#1300)

* add coverage flag to implement serve

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* removed serve.go and moved functionality to test

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* changed workflow according to new changes

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

* changed workflow according to new changes

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>

---------

Signed-off-by: EraKin575 <tejaskumar574@gmail.com>
* fix: updates the decode function for OpMsg section

the decode function is not able to distinguish the closing braces of the string json and sectionSingle, so used the prefix and suffix in place of regex to extract the document correctly

Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
AkashKumar7902 and others added 14 commits May 27, 2024 16:05
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
* add:redis parser
---------

Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.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>
* docker env fix

Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>

* chore: remove envs

---------

Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
* refactor: move dockerClient to platform

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

* fix: make config reference type

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
---------

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
* adding viper default key

Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>

* add: struct bind in releaser

* chore: remove build from unwanted file

---------

Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
AkashKumar7902 and others added 5 commits May 29, 2024 17:28
* refactor: remove binary matching for sorted mocks

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

* refactor: remove unused code

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

* chore: make info to debug log

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

* chore: fix linting issue

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

* chore: fix linting issue

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

* chore: fix linting issue

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

* chore: make info to debug log

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>

---------

Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
Signed-off-by: Yash Khare <yash2010118@akgec.ac.in>
Signed-off-by: dxtym <dilmurod.abdusamadov2004@gmail.com>
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.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 8 commits June 4, 2024 11:17
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
* feat: add support for global passthrough in test mode

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

* chore: change flag name and refactor

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>

---------

Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
…coverage entries from coverage report

Signed-off-by: Akash Kumar <meakash7902@gmail.com>
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