mfaisalkhatri / junit-examples

Learn how to write tests using JUnit 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Source Love

Don't forget to give a to make the project popular.

What is this Repository about?

  • This repo contains automation tests for Junit 5 Unit testing framework.
  • This project uses Maven as build tool and JUnit 5 framework to run the tests.
  • LambdaTest E-Commerce Playground website is used for running the demo tests.

Running the Tests

By default, tests would be running on LambdaTest Platform on Chrome Browser.

  1. To run the test from command line use the following command:

    • mvn test -Dusername=<LambdaTest username> -DaccessKey<LambdaTest access key>
  2. To run the tests using JUnit 5 in intelliJ:

    • Open Run Configuration menu using the Run >> Edit configurations >> JUnit menu and add the LambdaTest username and access key in the VM option as follows: -Dusername = -DaccessKey =

    • Click on Apply and OK to start running the tests.

🧬 Need Assistance?

  • Discuss your queries by writing to me @ mohammadfaisalkhatri@gmail.com OR ping me on any of the social media sites using the below link:

💭 Checkout the blogs related to Testing on my website and medium-account

About

Learn how to write tests using JUnit 5

License:Apache License 2.0


Languages

Language:Java 100.0%