Skip to content

ISBronny/FlueFlame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

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 Documentation

Test example

Endpoint testing that returns employees older than a certain age:

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

More examples here

License

This project is licensed under the MIT License - see the LICENSE file for details