Integration Testing with Docker and Testcontainers


Course Number: DVOP-154
Duration: 0.5 days (3.25 hours)
Format: Live, hands-on

Docker and Testcontainers Training Overview

This live, interactive Integration Testing with Docker and Testcontainers training teaches attendees how to set up and run integration and functional tests with open-source library Testcontainers. Attendees learn how to stand up lightweight, disposable Docker instances that run applications as reliable test fixtures. 

Location and Pricing

This course is taught as a private, live online class for teams of 3 or more. All our courses are hands-on, instructor-led, and tailored to fit your group’s goals and needs. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for online corporate training, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand the purpose, differences, and trade-offs between test types
  • Use Testcontainers to write integration tests
  • Write integration tests for different scenarios
  • Automate test execution in Maven and Gradle builds

Prerequisites

  • A basic understanding of Docker and the Java programming language
  • Hands-on experience with common Java frameworks and dependencies
  • Experience with writing test code with the test framework JUnit 4 or JUnit 5

Outline

Expand All | Collapse All

Problems with Integration Testing and How Testcontainers Can Help
  • The testing pyramid
  • What are Testcontainers?
  • Testcontainers technical quickstart
  • Your typical problems with integration testing
  • Using Testcontainers for a Java-based project with JUnit 5
Implementing Typical Integration Test Scenarios
  • Testing database services
  • Testing multiple services together with Docker Compose
  • Building a container on the fly
  • Using a database module
  • The Docker Compose module
  • The generic container module
Going Further
  • Comparing Testcontainers with JUnit 4, JUnit 5, and Spock
  • Using Testcontainers with different Java frameworks
  • Testcontainers on continuous integration
  • Testcontainers for languages other than Java
  • Using Testcontainers on GitHub Actions
Conclusion

Training Materials

All attendees receive a copy of the instructor’s presentation and related code.

Software Requirements

  • A computer with Java 11 OpenJDK and Docker Engine installed
  • A GitHub account
  • A Docker Hub account


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan