Skip to content

A skeleton maven project using junit v5 and cucumber v7. It took lots of trial and error to find a setup that didn't rely on junit v4 or deprecated functions. Hopefully this can save you some time.

Notifications You must be signed in to change notification settings

PhilGrayson/junit5-cucumber7-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Example output of mvn test.

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running FooTest
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.126 s <<< FAILURE! - in FooTest
[ERROR] Running a test that fails  Time elapsed: 0.009 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: not equal but was: <Hello world!>
	at com.example.FooTest.thenFail(FooTest.java:29)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   FooTest.thenFail:29 expected: not equal but was: <Hello world!>
[INFO] 
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0

About

A skeleton maven project using junit v5 and cucumber v7. It took lots of trial and error to find a setup that didn't rely on junit v4 or deprecated functions. Hopefully this can save you some time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published