Giter Club home page Giter Club logo

Comments (7)

slayerjain avatar slayerjain commented on June 16, 2024 1

@Akash-Singh04 the issue is open to everyone. We will merge the first good PR

from keploy.

Akash-Singh04 avatar Akash-Singh04 commented on June 16, 2024

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.

Prasang023 avatar Prasang023 commented on June 16, 2024

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.

slayerjain avatar slayerjain commented on June 16, 2024

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.

slayerjain avatar slayerjain commented on June 16, 2024

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.

gouravkrosx avatar gouravkrosx commented on June 16, 2024

@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.

Akash-Singh04 avatar Akash-Singh04 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.