Fila.Testing 0.0.1-alpha

This is a prerelease version of Fila.Testing.
dotnet add package Fila.Testing --version 0.0.1-alpha
                    
NuGet\Install-Package Fila.Testing -Version 0.0.1-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fila.Testing" Version="0.0.1-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fila.Testing" Version="0.0.1-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Fila.Testing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fila.Testing --version 0.0.1-alpha
                    
#r "nuget: Fila.Testing, 0.0.1-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fila.Testing@0.0.1-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fila.Testing&version=0.0.1-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fila.Testing&version=0.0.1-alpha&prerelease
                    
Install as a Cake Tool

Fila.Testing

Assertion helpers for testing a Fila panel.

Fila answers actions with server-rendered HTML plus an HX-Trigger header, so asserting that an action notified the user or closed its modal otherwise means hand-parsing that header's JSON in every test. These do it for you.

Deliberately tied to no test framework: they throw FilaAssertionException, and an unhandled exception fails a test under xUnit, NUnit, MSTest or anything else.

Install

dotnet add package Fila.Testing --prerelease

Fila is at 0.0.1-alpha, so --prerelease is required until a stable version ships.

Assertions

var response = await client.PostAsync("/admin/orders/1/mark-shipped", null);

response.AssertNotificationTriggered(title: "Marked as shipped", color: "success");
response.AssertModalClosed();

Both are extension methods on HttpResponseMessage, so they drop straight into a WebApplicationFactory test.


Part of Fila, an admin-panel framework for ASP.NET Core in the shape of Laravel Filament: Razor views instead of Blade, htmx instead of Livewire, the same fi-* class names and design tokens.

Licensed under the GNU GPL v3 — see the LICENSE file in this package.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.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
0.0.1-alpha 68 9/8/2026