GithubHelp home page GithubHelp logo

isabella232 / isv-ci-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cf-platform-eng/isv-ci-generator

0.0 0.0 0.0 1.68 MB

Home for example CN-JEB tests

License: MIT License

Shell 14.61% JavaScript 47.04% Makefile 21.82% HTML 4.07% Dockerfile 9.96% Gherkin 2.49%

isv-ci-generator's Introduction

ISV CI Test Yeoman Generator

This is a Yeoman Generator that generates a scaffold which contains just enough to get you (our valued partner) started with your own ISV-CI tests.

Current scaffolds include:

  • app, which is a simple 'Hello World' example.
  • tile, which will install and uninstall your tile, just like our pre-canned version that you can expand with your own custom tests.
  • helm, which will install and test a helm chart. This is pending the creation of a pre-canned version.

Usage

  1. Gather prerequisites

    1. You will need NPM installed on your computer

    2. Install Yeoman if you don't have it already

    npm install -g yo
  2. Install the generator.

    1. Download the latest release of isv-ci-generator.tgz

    2. Extract the tarball to a directory. You should put this somewhere meaningful if you want to keep the generator installed.

    mkdir isv-ci-generator
    cd isv-ci-generator
    tar xzf <path to downloaded isv-ci-generator.tgz>
    1. In the generator directory, link the generator to Yeoman
    npm link
  3. Run the generator

  • To generate a simple hello world test:
    cd <project parent> 
    yo isv-ci <your-test-name> # Test scaffold is generated in <project parent>/<your-test-name> 
  • To generate a helm chart install/uninstall test:
    cd <project parent> 
    yo isv-ci:helm <your-test-name> # Test scaffold for helm test is generated in <project parent>/<your-test-name> 
    Follow the instructions provided by the generator to get started. Instructions to enhance the default helm test can be found here.

Development

  1. Link this generator to the Yeoman registry

    run npm link in this directory

  2. use Yeoman to test the generator. To generate a simple hello world test:

    yo isv-ci my-sample-test

Tests

Template test is app/index.test.js

Unit tests are included with the template, and can be exercised with make test which:

  1. runs the template, building the app in ./temp/example
  2. runs the bats tests inside the example directory.

isv-ci-generator's People

Contributors

dependabot-preview[bot] avatar erniebilling avatar mboldt avatar petereltgroth avatar pivotal-so avatar squeedee avatar

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.