keploy icon indicating copy to clipboard operation
keploy copied to clipboard

[feature]: download all generated test cases

Open luudis opened this issue 2 years ago • 5 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues

Summary

  • download all the generated test cases
  • place them into original code and works with go test

Why should this be worked on?

All tech teams demand high test coverage of all programs. We use bamboo to run pipeline of unit tests. Maybe we can download the test cases generated by kepoly and use them in bamboo pipelines. If this works , it can save lots of time of writing unit test code.

luudis avatar Jul 05 '22 11:07 luudis

Thank you and congratulations 🎉 for opening your very first issue in keploy

github-actions[bot] avatar Jul 05 '22 11:07 github-actions[bot]

@luudis thanks for creating the feature request :)

We are working on the design of code export feature.

For now, have you tried the go test integration which you could use with bamboo? - https://github.com/keploy/keploy#integration-with-native-go-test-framework

Its also available in the sample application - https://github.com/keploy/samples-go/blob/main/echo-sql/main_test.go

This should allow you to run keploy tests along with your existing units tests with go test anywhere including bamboo.

slayerjain avatar Jul 05 '22 12:07 slayerjain

This would be great to have.

anirudhjain75 avatar Aug 05 '22 18:08 anirudhjain75

We've started working on this.

Tests will be exported as YAML files and be editable by the user. Mocks will also be exported separately and can be used in isolation. Mongo would then become optional and test files would directly execute on keploy

slayerjain avatar Aug 17 '22 10:08 slayerjain

@slayerjain I am glad to hear this. It will be an awesome feature for us!

luudis avatar Aug 18 '22 00:08 luudis

Done by #175

Sarthak160 avatar Sep 05 '23 12:09 Sarthak160