Skip to content

SQLite

Terminal window
dotnet add package Surefire.Sqlite
builder.Services.AddSurefire(options =>
{
options.UseSqlite("Data Source=surefire.db");
});

SQLite is a good fit for development, testing, embedded apps, and single-node deployments where you want persistence without running a database server.

With AutoMigrate enabled (the default), Surefire creates and migrates the required surefire_* tables on startup.

The SQLite provider has no built-in notification transport. Workers wake up on PollingInterval (default 5 seconds). Lower it for faster pickup of new runs:

options.PollingInterval = TimeSpan.FromSeconds(2);