Code Monkey home page Code Monkey logo

demo-webdriverio-mocha's Introduction

E2E tests with WebDriverIO and Mocha

Commitizen friendly Action Status

This is a demonstration project of integration tests. In this project the user sends a message to the customer service on Automation Practice.
These tests are developed in TypeScript with WebDriverIO V7 and Mocha

Features

┌─────────┬──────────────────────┬─────────────┬─────┬─────────┬──────────┬──────────┐
│ (index) │         name         │ averageTime │ sem │ repeats │ minValue │ maxValue │
├─────────┼──────────────────────┼─────────────┼─────┼─────────┼──────────┼──────────┤
│    0    │    'LoginProcess'    │    4243     │  0  │    1    │   4243   │   4243   │
│    1    │ 'SendMessageProcess' │    1408     │  0  │    1    │   1408   │   1408   │
└─────────┴──────────────────────┴─────────────┴─────┴─────────┴──────────┴──────────┘
  • Page Object Pattern
  • Commit lint and Commitizen
  • ESlint
  • Prettier
  • Husky
  • Github Actions example
  • Allure report (screenshots on failure)

Requirements

Getting Started

Install the dependencies:

npm install

Compile TypeScript:

npm run build

Run e2e tests:

npm run tests:e2e

Run visual regression tests:

npm run tests:visualregression

Reports

Allure

Run this command to generate the allure report in the directory ./test-report/allure-report:

npm run report:generate

You can run this command to start a server on your machine and open the allure report on the browser:

npm run report:open

Prettier and Eslint

Run to format the code:

npm run code:format

Commit

We use the best practices for message's commit, using Commit lint and Commitizen we can generate changelogs automatically.

Run npm run commit and commitizen will help you.

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.