Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/isbronny/flueflame

Integration testing framework for ASP.NET
https://github.com/isbronny/flueflame

asp-net asp-net-core csharp dotnet framework grpc grpc-net-core integration-testing signalr testing

Last synced: 8 days ago
JSON representation

Integration testing framework for ASP.NET

Awesome Lists containing this project

README

        

logo


FlueFlame


Integration testing framework for ASP.NET



License


Issues Count


Downloads


Version



Documentation


Roadmap

# Description

FlueFlame is an open-source framework for creating End-To-End tests. FlueFlame was developed for testing ASP.NET Core applications, but can be used to test any backend.

It is implemented in the Fluent API style, which allows you to write understandable declarative tests. FlueFlame also has packages that allow you to test not only REST APIs, but also technologies such as gRPC.

# Getting Started

Check out the [Getting Started](https://isbronny.github.io/FlueFlame/introduction/getting-started) Documentation

# Test example

Endpoint testing that returns employees older than a certain age:

```csharp
[Test]
public void GetWithQueryReturnsOk()
{
HttpHost.Get
.Url("/api/employee/older-than")
.AddQuery("olderThan", 45)
.Send()
.Response
.AssertStatusCode(HttpStatusCode.OK)
.AsJson
.AssertThat(employees => employees.Should().NotContain(x=>x.Age<45));
}

```
More examples [here](https://github.com/ISBronny/FlueFlame/tree/master/src/Examples.Tests.Api)

# License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details