Code Monkey home page Code Monkey logo

search-e2e-test's Introduction

search-e2e-test

Build Status

End-to-end tests for the Open Cluster Management search component. The tests consist of the following user scenarios:

Running the tests locally

Pre-requisites:

  • nodeJS
  • OpenShift CLI
  • yq command - link for Fedora
  • a browser - either chrome or firefox
  1. Copy the options.yaml.template file into ./options.yaml and update with your target cluster access info.
  2. Run npm install
  3. Run npm run test OR npm run test:headed

Cypress Test

Running the tests using Docker image

  1. Copy the options.yaml.template file into ./options.yaml and fill in the necessary values.
  2. Pull an existing image or build your own using docker build -t <image_name>:<tag> .
  3. Run the image with the following command docker run -it --volume $(pwd)/test-output:/results --volume $(pwd)/options.yaml:/resources/options.yaml <image_name>:<tag>

    Alternative: Pass the values in options.yaml as environment variables to the image like: -e OPTIONS_HUB_BASEDOMAIN=${value}

NPM Commands

Command Description
npm run test Run Cypress tests
npm run test:api Run Search API tests (jest)
npm run test:clean-reports Remove reports within the results directory
npm run test:debug Remove reports within the results directory
npm run test:headed Run Cypress tests and display test being executed within the browser (Default browser: chrome)
npm run test:headless Run Cypress tests while hiding the browser
npm run test:merge-json Merge JSON report files within the results/json directory
npm run test:merge-reports Merge reports within the results directory
npm run test:merge-xml Merge XML report files within the results/xml directory
npm run test:production Run Cypress tests in the production environment

Links

These are a few useful links that will help provide technical reference and best practices when developing for the platform.

search-e2e-test's People

Contributors

sherinv avatar jlpadilla avatar dislbenn avatar kyl-bempah avatar zlayne avatar robdolares avatar abhinamdhari avatar jadhaj avatar shi2wei3 avatar sgitario avatar schmidtd avatar hchenxa avatar mqhackett avatar zack-layne avatar ssegalredhat avatar srivickynesh avatar pezhang 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.