Comments (7)
@Akash-Singh04 the issue is open to everyone. We will merge the first good PR
from keploy.
Hey , @slayerjain is this issue still open? if so, can you assign it to me. I would love to learn more about github actions while implementing this!
from keploy.
Hi, @slayerjain, I haven't done that before for my application so I'll need a little help with this. As much as I understand, for this task I'll have to write a generic script for some user application. To add keploy tests in github actions, is this the workflow: deploy and run the user app, checkout to keploy and run the tests. I've a doubt like in order to test using keploy, recorded tests should be present in the keploy folder right? how do we take care of that. It would be great if you could provide a reference project/sample app in which github action for keploy tests workflow has already been implemented. Thanks.
from keploy.
Hi @Prasang023, the idea is to create a simple which would just run keploy test in GitHub actions. This obviously requires the application command to run, which could be extracted when the application is first recorded. You could probably set a default delay of something like 30 seconds.
from keploy.
I think I have more complex examples of GitHub actions. @gouravkrosx can you please the simplest possible GitHub actions file to run keploy in Github actions CI.
from keploy.
@Prasang023
Here is a sample GHA for your reference.
name: Setup Application with Keploy
on: [push, pull_request]
jobs:
setup-and-test:
runs-on: ubuntu-latest
steps:
# Step 1: Set up your application
# Add your application setup steps here
- name: Setup Application
run: |
echo "Replace this line with your application setup commands"
# Step 2: Install Keploy
- name: Install Keploy
run: |
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz" | tar xz -C /tmp
sudo mkdir -p /usr/local/bin && sudo mv /tmp/keploy /usr/local/bin/keploybin
echo 'alias keploy="sudo -E env PATH=\"$PATH\" keploybin"' >> $GITHUB_ENV
# Step 3: Test with Keploy
- name: Test with Keploy
run: |
source $GITHUB_ENV
keploy test -c "your application running command" --delay 30
from keploy.
Hey @slayerjain @gouravkrosx I have implemented a PR for this issue which uses the Keploy TestGPT for the github actions workflow. Please review it and let me know if this implementation works or instead of using the TestGPT, we shall use the sample GHA @gouravkrosx provided. Thank you
from keploy.
Related Issues (20)
- refactor: docker client should be part of platform and initialised at upper layer
- [feature]: support of docker env
- [bug]: keploy config breaks incase if a key includes dot in name in global noise
- feat: add support for replacing test case url
- [bug]: read indices checks file too instead of just checking test set
- feat: add support for global passthrough
- [feature]: support of config file for each test set
- [bug]: keploy update not working on debian HOT 1
- [bug]: build fails because of latest releaser function
- [bug]: docker container group isn't called while stopping docker commnad
- [bug]: `--disableAnsi` doesn't clean up logs in Jenkins completely
- [feature]: update keploybin to keploy in one-click script HOT 1
- [bug]: keploy tests are failing with the Prisma ORM
- [bug]: race condition because of mock manager
- [bug]: tar: Cannot open: File exists
- feat: add support for running pre and post scripts of test set.
- [feature]: Add husky to the project HOT 4
- [feature]: one-click script should have a way to install specific keploy version HOT 2
- [bug]: unable to stop express-mongoose docker container
- [bug]: error in config read
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keploy.