/cypress-code

automation coding challenge with javascript cypress

Primary LanguageJavaScript

Functional UI Coding Challenge Tests

License

License

Build Status

Badge

above is a sample badge

Summary

This directory contains the UI Tests for the front-end projects, these tests are written in nodejs using mocha test framework, cypress, and Allure for reporting.

Code Guidelines

  • Code should be clean and kept to the same standard as production code - make sure unused variables and methods are removed, code is correctly formatted, with no random newlines and whitespaces. Where possible node js style guidelines should be followed.
  • I recommend using Visual Studio Code and installing the eslintrc extension. Warnings must not be ignored.
  • Please eslint plugin.

Installation

You should have Node.js installed. If you don't have Node installed, I recommend installing NVM to assist managing multiple active Node.js versions. My recommended version is 10+.

Once node is installed, execute:

npm ci

How do I run the tests on my local machine?

npm test

Launch Arguments

By default tests are executed using a Chrome browser.

To run tests in headless mode:

npm run test -- --browser electron

To run tests in Chrome browser:

npm run test

Generate Allure report

npm run report

Run tests on jenkins ci machine

Please use the Jenkins File to configure the jenkins pipeline to run the test

Coding Challenge Test Reports

Home Spec test report

PairTrade Spec test report