Skip to content

TechSavagery/alpha-plus-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Alpha Plus Tests

Test suite to validate features of the Alpha Plus web app and api.
Explore the docs »

· Report Test Automation Defects · Request Test Automation

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Contact

About The Project

Built With

Getting Started

To run this locally follow these steps.

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/TechSavagery/alpha-plus-tests.git
  2. Install NPM packages
    npm install

Taurus

  1. Install Python
  2. Intall Microsoft C++ Build Tools
  3. Install Cython pip install cython
  4. Install Taurus pip install bzt

Usage

To Run Tests in specfic environments:

interactive: starts a test managemment browser that allows you to run tests via a GUI
monitor: Provides the same GUI but automatically runs so that you can just watch it do its thing 
ci: runs headlessly so you can leverage this in builds 

Development

npm run test:interactive:dev
npm run test:monitor:dev
npm run test:ci:dev

Production

npm run test:interactive:prod
npm run test:monitor:prod
npm run test:ci:prod

CI via GitHub actions:

Base GitHub Actions Yaml

name: Automated Tests
on: [push]
jobs:
  qa-environment-tests-chrome:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run Cypress Tests Chrome
        uses: cypress-io/github-action@v2
        with:
          browser: chrome
          headless: true
          spec: |
            cypress/integration/workflows/**/*spec.js
            cypress/integration/pages/**/*spec.js
          config-file: cypress/env/qa.json
          config: video=false
  qa-environment-tests-firefox:
    runs-on: ubuntu-latest
    container:
      image: cypress/browsers:node13.6.0-chrome80-ff72
      options: --user 1001
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run Cypress Tests Firefox
        uses: cypress-io/github-action@v2
        with:
          browser: firefox
          headless: true
          spec: |
            cypress/integration/workflows/**/*spec.js
            cypress/integration/pages/**/*spec.js
          config-file: cypress/env/qa.json
          config: video=false

Adding Test Execution Report via Github Pages

The following will run this workflow:

  1. Copy Videos to public directory for use in test report generation
  2. Merge individual spec file reports into one report
  3. Generate html report
  4. Deploy to github pages

For detailed config and dependencies setup, please refer to the following article below: https://medium.com/swlh/publish-your-cypress-test-report-with-github-actions-47248788713a

- name: Copy Videos for Test Report
        run: |
          mkdir public
          cp -r cypress/videos public/videos
      - name: Merge Test Result Files
        run: npm run report:merge
      - name: Generate HTML report
        run: npm run report:generate
      - name: Deploy Cypress Test Report 
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GH_TOKEN }}
          publish_dir: ./public
          user_name: 'github-actions[bot]'
          user_email: 'github-actions[bot]@users.noreply.github.com'

Contact

Your Name - @ladellerby - [email protected]

Project Link: https://github.com/TechSavagery/alpha-plus-tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published