An open API service indexing awesome lists of open source software.

https://github.com/mfaisalkhatri/junit-examples

Learn how to write tests using JUnit 5
https://github.com/mfaisalkhatri/junit-examples

examples hacktoberfest junit5 testautomation testing tutorial

Last synced: 6 months ago
JSON representation

Learn how to write tests using JUnit 5

Awesome Lists containing this project

README

          

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

## :question: 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](https://ecommerce-playground.lambdatest.io/) 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= -DaccessKey`

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

- [Beginner’s Guide to JUnit 5](https://medium.com/@iamfaisalkhatri/beginners-guide-to-junit-5-7756286cd4be)]
- [How to Write JUnit Test Cases: Step-by-Step Guide](https://www.lambdatest.com/blog/junit-test-cases/)
- [How To Use JUnit Ignore Test Annotation [With Examples]](https://www.lambdatest.com/blog/junit-ignore-test-annotation/)
- [JUnit Tutorial: Writing Nested Tests In JUnit 5](https://www.lambdatest.com/learning-hub/junit5-nested-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:
- [Linktree](https://linktr.ee/faisalkhatri)

### :thought_balloon: Checkout the blogs related to Testing on [Medium blog](https://medium.com/@iamfaisalkhatri), [My Website](https://mfaisalkhatri.github.io) and [LambdaTest blogs](https://www.lambdatest.com/blog/author/mfaisalkhatri/)

### :bookmark: Checkout videos related to Software Testing and Test automation tools on [Testing Talks with Faisal Khatri](https://www.youtube.com/@faisalkhatriqa)