Skip to content

Examples showing how to use QuickPerf with several frameworks (JUnit 4, JUnit 5, TestNG, Spring Boot, Quarkus, Micronaut, ...)

License

Notifications You must be signed in to change notification settings

quick-perf/quickperf-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickPerf

QuickPerf examples

This repository contains several projects showing how to use QuickPerf JVM and SQL annotations with various frameworks (JUnit 4, JUnit 5, TestNG, Testcontainers, Spring Boot, Quarkus, Micronaut, ...).

How to run the examples

JVM annotations

Hibernate without Spring

Spring Boot

Micronaut

Quarkus

Testcontainers

How to run the examples

Online in Developer Sandbox

Run the examples with an online interactive guide (hosted by Red Hat):

Developer Sandbox is a Red Hat OpenShift cluster to deploy your application code as a container on this self-service, cloud-hosted experience. Skip installations and deployment and jump directly into OpenShift.

  1. Get registered if not: https://developers.redhat.com/developer-sandbox
  2. Start the workspace: try it online

Powered by Eclipse Che and VSCode Didact.

From your computer

QuickPerf artifacts are published to Maven central.

Execute the following command lines:

Windows

  git clone https://github.com/quick-perf/quickperf-examples.git
  cd quickperf-examples
  mvnw.cmd compile

Mac or Linux or Windows with Git Bash

  git clone https://github.com/quick-perf/quickperf-examples.git
  cd quickperf-examples
  ./mvnw compile

Import the quickperf-examples project in your IDE.

You can now execute the test methods from your IDE.

Tests are skiped by default as they will all fail, if you want to execute them via Maven you need to use mvn clean test -Dmaven.test.skip=false -Dmaven.test.failure.ignore.

JVM annotations

jvm-junit4
Examples showing how to use some JVM annotations with JUnit 4

jvm-junit5
Examples showing how to use some JVM annotations with JUnit 5

jvm-testng
Examples showing how to use some JVM annotations with TestNG

Hibernate without Spring

hibernate-junit4
Examples showing how to use some SQL annotations with Hibernate and JUnit 4

hibernate-junit5
Examples showing how to use some SQL annotations with Hibernate and JUnit 5

hibernate-postgresql-testcontainers-junit5
Examples showing how to use some SQL annotations with Hibernate, JUnit 5, PostgreSQL and Testcontainers

hibernate-mariadb-testcontainers-junit5
Examples showing how to use some SQL annotations with Hibernate, JUnit 5, MariaDB and Testcontainers

hibernate-testng
Examples showing how to use some SQL annotations with Hibernate and TestNG

Spring Boot

springboot-junit4
This Spring Boot project illustrates how to use QuickPerf with JUnit 4

springboot-junit5
This Spring Boot project illustrates how to use QuickPerf with JUnit 5

testcontainers-springboot-junit5
This Spring Boot project illustrates how to use QuickPerf with JUnit 5 and Testcontainers

Micronaut

micronaut-hibernate-jpa
This Micronaut/Hibernate/JPA project illustrates how to use QuickPerf with JUnit 5

micronaut-data-jdbc
This Micronaut/Data JDBC project illustrates how to use QuickPerf with JUnit 5

Quarkus

quarkus
This Quarkus project illustrates how to use QuickPerf with JUnit 5 for SQL annotations only

Testcontainers

hibernate-postgresql-testcontainers-junit5
Examples showing how to use some SQL annotations with Hibernate, JUnit 5, PostgreSQL and Testcontainers

hibernate-mariadb-testcontainers-junit5
Examples showing how to use some SQL annotations with Hibernate, JUnit 5, MariaDB and Testcontainers

testcontainers-springboot-junit5
This Spring Boot project illustrates how to use QuickPerf with JUnit 5 and Testcontainers

About

Examples showing how to use QuickPerf with several frameworks (JUnit 4, JUnit 5, TestNG, Spring Boot, Quarkus, Micronaut, ...)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages