TeaPie.Tool 1.7.1

dotnet tool install --global TeaPie.Tool --version 1.7.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local TeaPie.Tool --version 1.7.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=TeaPie.Tool&version=1.7.1
                    
nuke :add-package TeaPie.Tool --version 1.7.1
                    

TeaPie - API Testing Framework

NuGet NuGet downloads License Build

Logo

TeaPie is a lightweight API testing framework designed for automation-friendly, scriptable API testing with .http and .tp files. It provides pre-request scripting, post-response validation, retry strategies, flexible authentication, environments support and custom test directives.

Built for AI coding agents. Tests are plain text files that live next to your backend code, so an agent like Claude Code can write them, run them with teapie test, read the failures and fix them, and every change shows up in your pull request. Install the TeaPie plugin and ask your agent to cover an endpoint with integration tests.

// add-car-req.http
# @name AddCar
## TEST-EXPECT-STATUS: [201]
## TEST-HAS-BODY
POST {{ApiBaseUrl}}/cars
Content-Type: application/json

{ "brand": "Skoda", "model": "Octavia", "year": 2024 }

Need more than status checks? Add a C# script next to the request and assert anything with xUnit:

// add-car-test.csx
await tp.Test("New car should be returned with an id.", async () =>
{
    dynamic car = await tp.Responses["AddCar"].GetBodyAsExpandoAsync();
    NotNull(car.id);
});

📖 Documentation

📚 Complete documentation is available in the Wiki.

🚀 Features

✅ Universal HTTP Requests Definition – Define HTTP requests using .http files

✅ Flexible Test Structure – Use multi-file (.http + .csx) or single-file (.tp) format based on your needs

✅ Pre-Request & Post-Response Scripts – Extend HTTP request with C# scripts for data

✅ Custom Authentication Providers – Supports OAuth2 & user-defined authentication providers

✅ Retry Strategies – Customize retry logic for API failures

✅ Environment Support – Run your tests on any environment and change it dynamically

✅ Custom Reporting - Apart of Console and JUnit XML reporting, you can specify own reporters

✅ Easy Versioning – Collections of the tests can be part of (backend) repository and changes are easily visible on PRs

✅ Extensible & Open Source – Project is ready-to-be extended due to its pipeline design pattern

📦 Installation

Install via NuGet

To install TeaPie CLI, use the following command:

dotnet tool install -g TeaPie.Tool

To install the framework in your project:

dotnet add package TeaPie

🤖 AI Agent Skills

TeaPie provides AI Agent Skills that help AI assistants write, run and debug your tests.

In Claude Code, install the TeaPie plugin:

/plugin install teapie --marketplace Kros-sk/TeaPie

On older Claude Code versions, add the marketplace first with /plugin marketplace add Kros-sk/TeaPie, then run /plugin install teapie@teapie.

For other agents, or to commit the skill into your repository, use the CLI:

teapie install-skills

This will download skills into .claude/skills/teapie/ in your project. For more details, see the AI Agent Skills documentation. Documentation for LLMs is available at llms.txt.

⚡ Quick Start

Create a new test case:

teapie generate <test-case-name>

Run all test cases in a collection:

teapie test demo

Execute a single test case:

teapie test ".\demo\Tests\002-Cars\002-Edit-Car-req.http"

Or run a single-file test case (.tp):

teapie test ".\demo\Tests\002-Cars\004-Car-Operations.tp"

For more usage details, visit the Wiki.

🤝 Contributing

We welcome contributions! Please check out the Contribution Guide for details on how to get involved.

📝 License

TeaPie is licensed under the MIT License. See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.7.1 66 10/29/2026
1.7.0 1,257 6/19/2026
1.6.1 215 3/31/2026
1.6.0 156 3/27/2026
1.5.2 200 1/28/2026
1.5.1 157 1/16/2026
1.5.0 355 12/16/2025
1.4.0 755 12/3/2025
1.3.0 283 9/2/2025
1.2.1 362 5/16/2025
1.2.0 290 4/28/2025
1.1.3 230 4/19/2025
1.1.2 246 4/19/2025
1.1.1 291 4/9/2025
1.1.0 310 4/8/2025
1.0.0 279 3/12/2025
0.0.1 306 3/11/2025