Pororoca.Test
3.11.1
dotnet add package Pororoca.Test --version 3.11.1
NuGet\Install-Package Pororoca.Test -Version 3.11.1
<PackageReference Include="Pororoca.Test" Version="3.11.1" />
<PackageVersion Include="Pororoca.Test" Version="3.11.1" />
<PackageReference Include="Pororoca.Test" />
paket add Pororoca.Test --version 3.11.1
#r "nuget: Pororoca.Test, 3.11.1"
#:package Pororoca.Test@3.11.1
#addin nuget:?package=Pororoca.Test&version=3.11.1
#tool nuget:?package=Pororoca.Test&version=3.11.1
Pororoca.Test
This is the official Pororoca package for running automated tests. Pororoca is a tool for HTTP inspection, and this package can be used for HTTP integration tests, or simply for making HTTP requests.
To use it, you will need a Pororoca collection file to include inside your test project. Any .NET test framework can be used: xUnit, MSTest, and others, even console applications.
A full tutorial is available on the documentation website.
Example of usage within a test
The code below shows how to use the Pororoca.Test in a xUnit test. First, it loads a Pororoca collection from a file. Then, defines the environment that will be used.
using Xunit;
using System.Net;
using Pororoca.Test;
namespace Pororoca.Test.Tests;
public class MyPororocaTest
{
private readonly PororocaTest pororocaTest;
public MyPororocaTest()
{
string filePath = @"C:\Tests\MyCollection.pororoca_collection.json";
pororocaTest = PororocaTest.LoadCollectionFromFile(filePath)
.AndUseTheEnvironment("Local");
}
[Fact]
public async Task Should_get_JSON_successfully()
{
var res = await pororocaTest.SendRequestAsync("Get JSON");
Assert.NotNull(res);
Assert.Equal(HttpStatusCode.OK, res.StatusCode);
Assert.Equal("application/json; charset=utf-8", res.ContentType);
Assert.Contains("\"id\": 1", res.GetBodyAsText());
}
}
To load a Pororoca collection file that is in your test project folder, you can do it like this:
private static string GetTestCollectionFilePath()
{
var testDataDirInfo = new DirectoryInfo(Environment.CurrentDirectory).Parent!.Parent!.Parent!;
return Path.Combine(testDataDirInfo.FullName, "MyPororocaCollection.pororoca_collection.json");
}
| Product | Versions 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 was computed. 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. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.11.1 | 104 | 10/28/2026 |
| 3.11.0 | 101 | 10/14/2026 |
| 3.10.3 | 102 | 9/30/2026 |
| 3.10.2 | 139 | 8/28/2026 |
| 3.10.0 | 164 | 5/27/2026 |
| 3.9.1 | 174 | 3/29/2026 |
| 3.9.0 | 344 | 11/3/2025 |
| 3.8.3 | 307 | 9/10/2025 |
| 3.8.2 | 297 | 8/11/2025 |
| 3.8.1 | 378 | 8/7/2025 |
| 3.8.0 | 373 | 8/6/2025 |
| 3.7.7 | 315 | 7/9/2025 |
| 3.7.6 | 311 | 6/2/2025 |
| 3.7.5 | 289 | 6/2/2025 |
| 3.7.4 | 796 | 3/6/2025 |
| 3.7.3 | 387 | 3/5/2025 |
| 3.7.2 | 295 | 2/21/2025 |
| 3.7.1 | 262 | 1/13/2025 |
| 3.7.0 | 304 | 11/21/2024 |
| 3.6.0 | 276 | 10/7/2024 |