Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/isbronny/flueflame
- Owner: ISBronny
- License: mit
- Created: 2022-07-21T03:31:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T18:01:24.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T15:08:26.747Z (20 days ago)
- Topics: asp-net, asp-net-core, csharp, dotnet, framework, grpc, grpc-net-core, integration-testing, signalr, testing
- Language: C#
- Homepage:
- Size: 1.74 MB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FlueFlame
Integration testing framework for ASP.NET
# 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