Test suite to validate features of the Alpha Plus web app and api.
Explore the docs »
·
Report Test Automation Defects
·
Request Test Automation
To run this locally follow these steps.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/TechSavagery/alpha-plus-tests.git
- Install NPM packages
npm install
- Install Python
- Intall Microsoft C++ Build Tools
- Install Cython
pip install cython
- Install Taurus
pip install bzt
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
npm run test:interactive:dev
npm run test:monitor:dev
npm run test:ci:dev
npm run test:interactive:prod
npm run test:monitor:prod
npm run test:ci:prod
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
The following will run this workflow:
- Copy Videos to public directory for use in test report generation
- Merge individual spec file reports into one report
- Generate html report
- 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'
Your Name - @ladellerby - [email protected]
Project Link: https://github.com/TechSavagery/alpha-plus-tests