GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eviltester/startUsingJavaJUnit5: Basic setup for an up to date java with Junit 5

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 
speedrun_install_java_checklist.md
speedrun_install_java_checklist.md
 
 

Repository files navigation

Start Using Java JUnit5

build status

Basic setup for an up to date java maven project with Junit 5.

This project demonstrates:

  • Maven Setup
  • JUnit execution
  • Jacoco Test Coverage Report Generation

Requirements:

  • Install Java JDK (SDK) (anything above v 1.9)
  • Install maven

Pre-requisite Install Instructions

Install instructions can be found in speedrun_install_java_checklist.md

Read the Speedrun Install Java Checklist for more details.

Usage

In the root folder where the pom.xml resides, type:

mvn test

And you should see something like:

[INFO] Scanning for projects...
[INFO]
[INFO] --------------< uk.co.compendiumdev:startusingjavajunit5 >--------------
[INFO] Building startusingjavajunit5 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------

[INFO]

... blah blah blah ...

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running co.compendiumdev.junit.MyFirstTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 s - in co.compendiumdev.junit.MyFirstTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jacoco:0.8.10:report (report) @ startusingjavajunit5 ---
[INFO] Loading execution data file /../startUsingJavaJUnit5/target/jacoco.exec
[INFO] Analyzed bundle 'startusingjavajunit5' with 1 classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.150 s
[INFO] Finished at: 2023-07-29T11:02:19+01:00
[INFO] ------------------------------------------------------------------------

If you see the BUILD SUCCESS then everything has installed properly.

In the /target/site/jacoco/ folder the index.hmtl file should have the JUnit execution and coverage report.

About

Author: Alan Richardson

  • EvilTester.com
  • Compendium Developments
  • A Java JUnit 4 version of this project is available
    • github.com/eviltester/startUsingJavaJUnit

About

Basic setup for an up to date java with Junit 5

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.