Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.91 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.91 KB

Automaton-v21

GitHub Node.js CI

Intro

Did you know there is an alternative solution to validate/test the web application? Let me introduce the Cypress. If you are familiar with JavaScript, Mocha test framework, and web stack definitely you should try it.

Structure and approach

-- automaton-v21
   |-- .gitignore
   |-- .gihub/workflows/node.js.yml
   |-- LICENSE
   |-- README.md
   |-- cypress.json
   |-- package.json
   |-- package-lock.json
   `-- cypress
       `-- integration
           `-- test.js

The repository structure is simple. It has as usual github workflow configuration file for GitHub Actions, License, Readme.md, cypress.json, package.json, package-lock.json, and test.js.

The last file (test.js) describes 2 test suites. The first test suite for UI testing contains 2 simple tests like go to google.com and the second one is try to perform search action and get some results. The second test suite for REST API testing contains 2 tests - go to a specific API endpoint and get a positive response from server and get first quote. You may check test results in GitHub Actions.

How it works

alt text

Pros and Cons

  • Uder development

TODOs

  • Add more tests.

Technology stack and documentation

Cypress
GitHub
Node.js
npm
mocha