Pororoca.Test
3.8.3
dotnet add package Pororoca.Test --version 3.8.3
NuGet\Install-Package Pororoca.Test -Version 3.8.3
<PackageReference Include="Pororoca.Test" Version="3.8.3" />
<PackageVersion Include="Pororoca.Test" Version="3.8.3" />
<PackageReference Include="Pororoca.Test" />
paket add Pororoca.Test --version 3.8.3
#r "nuget: Pororoca.Test, 3.8.3"
#:package Pororoca.Test@3.8.3
#addin nuget:?package=Pororoca.Test&version=3.8.3
#tool nuget:?package=Pororoca.Test&version=3.8.3
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.8.3 | 132 | 9/10/2025 |
3.8.2 | 145 | 8/11/2025 |
3.8.1 | 213 | 8/7/2025 |
3.8.0 | 222 | 8/6/2025 |
3.7.7 | 160 | 7/9/2025 |
3.7.6 | 158 | 6/2/2025 |
3.7.5 | 151 | 6/2/2025 |
3.7.4 | 457 | 3/6/2025 |
3.7.3 | 245 | 3/5/2025 |
3.7.2 | 141 | 2/21/2025 |
3.7.1 | 116 | 1/13/2025 |
3.7.0 | 150 | 11/21/2024 |
3.6.0 | 136 | 10/7/2024 |
3.5.0 | 158 | 8/7/2024 |
3.4.2 | 171 | 7/2/2024 |
3.4.1 | 184 | 6/12/2024 |
3.4.0 | 159 | 5/29/2024 |
3.3.0 | 166 | 4/29/2024 |
3.2.0 | 177 | 4/9/2024 |
3.1.1 | 181 | 3/13/2024 |
3.1.0 | 176 | 2/15/2024 |
3.0.1 | 223 | 1/10/2024 |
3.0.0 | 206 | 1/2/2024 |
2.5.0 | 214 | 11/14/2023 |
2.4.0 | 197 | 10/16/2023 |
2.3.0 | 171 | 9/25/2023 |
2.2.0 | 214 | 8/6/2023 |
2.1.0 | 230 | 4/24/2023 |
2.0.1 | 328 | 2/26/2023 |
2.0.0 | 356 | 12/21/2022 |
1.6.0 | 397 | 11/20/2022 |
1.5.0 | 496 | 9/21/2022 |
1.4.0 | 499 | 7/3/2022 |
1.3.0 | 521 | 5/15/2022 |
1.2.0 | 484 | 4/11/2022 |
1.1.1 | 524 | 3/21/2022 |
1.1.0 | 531 | 3/18/2022 |
0.1.1 | 503 | 3/15/2022 |
0.1.0 | 520 | 3/15/2022 |