Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 3.68 KB

File metadata and controls

65 lines (48 loc) · 3.68 KB

Testcontainers Workshop

Testing an application locally before containerizing it isn’t too challenging. But what if the app has already been built as a container? Testing it locally becomes more complex. With Testcontainers, you can test containerized applications using code, just like writing unit tests. Additionally, .NET Aspire makes it easy to test even in container orchestration scenarios.

Workshop Goals

  • Learn how to containerize an existing application using a Dockerfile.
  • Learn how to orchestrate containers for an existing application using Docker Compose.
  • Test containerized applications using Testcontainers.
  • Use .NET Aspire to simplify container orchestration.
  • Use .NET Aspire to easily test applications in container orchestration scenarios.
  • Perform UI testing using Playwright.

Workshop Prerequisites

Workshop Instructions

  • The workshop will be conducted step by step. For each step, you will engage in self-paced learning, with the facilitator providing brief guidance before starting each phase.

    Order Title
    STEP 00 Setting up the development environment
    STEP 01 Creating Dockerfile and Docker Compose files
    STEP 02 Testing APIs with Testcontainers
    STEP 03 Performing integration tests with Testcontainers
    STEP 04 Orchestrating containers with .NET Aspire
    STEP 05 Conducting integration tests with .NET Aspire
  • You can find intermediate results for each step at Save Points.

Documentation in Other Languages

This workshop is also available in the following languages!

Language Code Document Link Last Updated
한국어 ko 한국어 문서 2025-03-09
English en English Translation 2025-03-09
ไทย th การแปลภาษาไทย 2025-03-09

Additional Reference Materials

Disclaimer:
This document has been translated using machine-based AI translation services. While we strive for accuracy, please note that automated translations may contain errors or inaccuracies. The original document in its native language should be regarded as the authoritative source. For critical information, professional human translation is recommended. We are not responsible for any misunderstandings or misinterpretations resulting from the use of this translation.