This repository contains examples using TestContainers in a Spring Boot Application

Overview

Sample REST CRUD API with Spring Boot, Mysql, JPA and Hibernate

Using TestContainer to assure our Integration/API testing

Steps to Setup

1. Build and run the app using maven

mvn package
java -jar target/spring-boot-rest-api-tutorial-0.0.1-SNAPSHOT.jar

Alternatively, you can run the app without packaging it using -

mvn spring-boot:run

The app will start running at http://localhost:8080.

Explore Rest APIs

The app defines following CRUD APIs.

GET /api/v1/users

POST /api/v1/users

GET /api/v1/users/{userId}

PUT /api/v1/users/{userId}

DELETE /api/v1/users/{userId}

2. Sonar Qube with docker compose (before go to directory docker-sonarqube)

docker-compose.yml up -d

3. Execute test with code coverage Jacoco - * remember to start docker engine (the code coverage report will appear in target/site/jacoco)

mvn clean install

4. After execute the step 3 we can easily see the Allure report (to use Allure report is necessary to downloat it (Allure command line))

allure serve target/allure-results

allure-example

5. Postman collection -> API-USER.postman_collection.json

You might also like...

Sikuli's official repository on github. Ask questions or report bugs at http://launchpad.net/sikuli.

!!!This Sikuli X-1.0rc3 IS NO LONGER SUPPORTED !!! A new version of Sikuli(X) is available since 2013 as a follow up development GitHub repo: RaiMan/S

Jan 3, 2023

This is a repository to collect JUnit Tests for GAD exercises at TUM in SS21

TUM_GAD_Tests_SS21 This is a repository to collect JUnit Tests for GAD exercises at TUM in SS21. These tests have been written by students for student

Oct 31, 2022

PGdP-Tests-WS21/22 is a student-created repository used to share code tests.

 PGdP-Tests-WS21/22 is a student-created repository used to share code tests.

PGdP-Tests-WS21-22 PGdP-Tests-WS21/22 is a student-created repository used to share code tests. Important Note: In the near future, most exercises wil

Dec 2, 2022

The purpose of this repository is to help contributors find GSoC organizations through their technology stack

The purpose of this repository is to help contributors find GSoC organizations through their technology stack

The purpose of this repository is to help contributors find GSoC organizations through their technology stack. If it can help you, please give me a 🌟

Jan 9, 2023

Apache JMeter - An Open Source Java application designed to measure performance and load test applications

Apache JMeter - An Open Source Java application designed to measure performance and load test applications

An Open Source Java application designed to measure performance and load test applications. By The Apache Software Foundation What Is It? Apache JMete

Jan 1, 2023

A virtual Linux shell environment application for Android OS. Runs Alpine Linux in QEMU system emulator. Termux app fork.

vShell (Virtual Shell) — a successor of Termux project which provides an alternate implementation of the Linux terminal emulator for Android OS.

Feb 1, 2022

🎉Ultimate test automation for testing any application on any platform

 🎉Ultimate test automation for testing any application on any platform

boyka-java Ultimate test automation for testing any application on any platform boyka-java Setup Write conventional commits 1.

Dec 30, 2022

TCP Chat Application - Java networking, java swing

TCP-Chat-Application-in-Java TCP Chat Application - Java networking, java swing Java – Multithread Chat System Java Project on core Java, Java swing &

Feb 4, 2022
Owner
Guilherme Rogatto
I've been worked with Quality Assurance many years in my whole life and I had some experiences about Automation E2E, integration testing and performance tests.
Guilherme Rogatto
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

Testcontainers Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium we

null 6.7k Jan 9, 2023
This repository contains my solutions to programming problems of the UVa online-judge.

UVa Solutions This repository contains my solutions to programming problems of the UVa online-judge. Problem Set Volumes (100...1999) Volume 12 Proble

Tahanima Chowdhury 7 Nov 15, 2021
This repository contains example codes which will help you to know how to use selenium webdriver.

❓ What is this Repository about? This repo has example codes with Selenium 4 features. Websites used for testing are: automationpractice.com, saucedem

Mohammad Faisal Khatri 86 Dec 30, 2022
A collection of bite size examples for using chrome DevTools protocol commands with Selenium Webdriver v4.

selenium-devtools-guide A collection of bite size examples for using chrome DevTools protocol commands with Selenium Webdriver v4. Chrome Devtools Pro

Sudharsan Selvaraj 4 Aug 12, 2021
Spring boot application for video streaming with complete signup and login build with mongodb

PORT user-service : 8000 eureka-server : 8761 video-service : 8001 api-gateway : 5000 Api-Gateway endpoints request-type body Header sign-up localhost

null 2 Jun 27, 2022
Automation Tests (REST-API with REST-ASSURED examples)

Automation Tests (REST-API with REST-ASSURED examples) Technology Stack IDEA Java Junit5 Gradle Selenide Allure Jenkins Rest-Assured See details: src/

null 3 Apr 11, 2022
This repo contains materials for the presentation.

Axon Presentation Axon is open source CQRS and Even Sourcing freamwork. In Trendyol, We have used it for 1.5 year in the production. We have approxima

Fatih Altuntaş 14 Aug 28, 2022
A template for Spring Boot REST API tested with JUnit 5 and Cucumber 6

demo-bdd Un template Spring Boot pour lancer un BDD/ATDD avec Cucumber 6 et JUnit 5. Maven et le JDK 17 seront nécessaires. Exécuter les tests Le proj

Rui Lopes 4 Jul 19, 2022
🔌 Simple library to manipulate HTTP requests/responses and capture network logs made by the browser using selenium tests without using any proxies

Simple library to manipulate HTTP requests and responses, capture the network logs made by the browser using selenium tests without using any proxies

Sudharsan Selvaraj 29 Oct 23, 2022