shilpapatkar27 / Junit-5-tutorials-master

All the examples repository for Junit 5 Tutorials from javabydeveloper.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

N|Solid JUnit 5 Tutorial, a collection of sample applications to write and execute Junit 5 tests and extensions using JUnit Jupiter, JUnit Vintage, and the JUnit Platform on various build systems from javabydeveloper.com

N|Solid

Examples

The [junit5-maven-example] sample demonstrates the bare minimum configuration for getting started with JUnit Jupiter using the Maven build system.

The [junit5-gradle-example] sample Demonstrates the display custom names for the tests, built-in creating custom Display name generator.

The [junit5-displayNames-example] sample demonstrates the display custom names for the tests, built-in creating custom Display name generator.

The [junit5-instance-lifecycle-example] sample demonstrates the instance lifecycle of junit 5 test cases and the modes of test instance lifecycle.

The [junit5-assumptions-example] sample demonstrates the Junit 5 assumptions class assumeTrue()/assumeFalse() and assumeThat() methods.

The [junit5-disable-tests-example] sample demonstrates the how to disable tests using @Disabled annotation.

The [junit5-conditional-tests-example] sample demonstrates various conditional tests supported by Junit 5 and creating custom condition.

The [junit5-repeated-tests-example] sample demonstrates repeating tests execution by the specified number of times and creating a composed annotation to dispaly names with repetition info.

The [junit5-timeout-example] sample demonstrates Junit 5 timeout tests using @Timeout, assertTimeout(), assertTimeoutPreemptively() and configuring global timeouts

The [junit5-test-order-example] sample demonstrates Junit 5 tests execution order, @MethodOrder, @Order annotations AlphanUmeric order and creating custom order.

The [junit5-parameterized-tests-example] sample demonstrates the various argument sources to run parameterized tests, ArgumentsAccessor, Argument Aggregation examples.

The [junit5-consolelauncher-example] sample demonstrates the ConsoleLauncher to run Junit jupitor tests with several options.

The [junit5-allure-report-example] sample demonstrates Junit 5, allure, maven configuration and generating allure reports.

The [junit5-dynamic-tests-example] sample demonstrates the creating dynamic tests in Junit 5 and ordering and parallel execution of dynamic tests.

The [junit5-nested-tests-example] sample demonstrates the creating nested tests, nested tests execution order and timeouts in nested tests.

The [junit5-dependency-test-example] sample demonstrates the dependency injection for the test methods and constructors, built-in parameter resolvers and custom parameter resolvers to inject parameters.

The [junit5-tag-filter-example] sample demonstrates the tagging tests classes and methods filter or discovering tagged test to execute them.

The [junit5-tag-filter-example] sample demonstrates executing tag-specific test cases from gradle command line.

The [junit5-parallel-tests-example] sample demonstrates the configurations to run test classes and test methods parallel and @ResourceLock annotation to get synchronization access for the shared resources.

The [spring-boot-junit5-example] sample demonstrates the bare minimum configuration for configuration for getting started with JUnit Jupiter using the Maven build system and spring boot, simple tests for Rest controller.

Licence

Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

About

All the examples repository for Junit 5 Tutorials from javabydeveloper.com


Languages

Language:Java 99.9%Language:JavaScript 0.1%