Giter Site home page Giter Site logo

minos's Introduction

Minos

This repository contains code for the Cover Your Basics end-to-end tests.

Configuration

To configure the testing environment, run the following command:

$ ./scripts/configure

This will download Selenium and ChromeDriver if they are not installed. Once these files are downloaded, you must set the following environment variables:

  • MINOS_ENVIRONMENT: One of the keys in the config/environments.json file
  • MINOS_GOOGLE_API_CREDENTIALS: The absolute path to the API credentials JSON file

The credentials for the Gmail API can be downloaded from the Google APIs dashboard. Once you have downloaded this file and set its path via the environment variable, you must grant the Gmail API access to your account by running the following:

$ npm run authorize-gmail

Running Tests

# Start Selenium in the foreground
$ npm run selenium

# Run the main tests in another session
$ npm run test

# Run a specific test file
$ ./scripts/test --spec=tests/files/sitemap.js

# Run the main tests in a browser with a GUI
$ npm run test:gui

# Test the email workflow
$ npm run test:email

# Use a custom environment for a single run of tests
$ MINOS_ENVIRONMENT=staging npm run test

# Lint code
$ npm run lint

# Profile the performance of an environment
$ MINOS_ENVIRONMENT=production npm run profile

# Run an SSL Labs scan on an environment
$ MINOS_ENVIRONMENT=staging npm run profile:ssl

minos's People

Contributors

justinlocsei avatar

Watchers

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