/junit-examples

Learn how to write tests using JUnit 5

Primary LanguageJavaApache License 2.0Apache-2.0

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.

Blog Links

🧬 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 Medium, My Website and LambdaTest blogs

🔖 Checkout videos related to Software Testing and Test automation tools on Testing Talks with Faisal Khatri