dotnet-sqltest 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global dotnet-sqltest --version 1.0.4
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local dotnet-sqltest --version 1.0.4
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-sqltest&version=1.0.4
                    
nuke :add-package dotnet-sqltest --version 1.0.4
                    

NuGet Nuget Coverage Status

dotnet-sqltest

Command line tool for running tSQLt unit tests from MSBuild.Sdk.SqlProj projects inside throwaway instances of Docker containers for all compatible SQL Server or Azure SQL Edge images.

Usage

Install the tool from the package:

dotnet tool install --global dotnet-sqltest

Update the tool to newer version:

dotnet tool update --global dotnet-sqltest

Invoke the tool:

sqltest runall [options]

Options:
  -i, --image <image>          Docker image.
  -p, --project <project>      Database project.
  -c, --collation <collation>  Server collation.
  -r, --result <result>        Save result in JUnit XML file.
  --cc-disable                 Disable code coverage.
  --cc-include-tsqlt           Include code coverage of tSQLt schema.
  --windows-container          Run as Windows container.
  -?, -h, --help               Show help and usage information

Example

Running all tSQLt tests inside throwaway SQL Server container:

sqltest runall --project Database.Tests/Ok --image mcr.microsoft.com/mssql/server

Preparing database... 6 s
Deploying database... 10 s
Running all tests.... 435 ms
Gathering coverage... 1 s
Uncovered statements:
  [dbo].[Example]: SELECT A = 1 INTO #Example
  [dbo].[Example]: UPDATE #Example SET [...]
Failed: 0, Passed: 1, Coverage: 60% (3/5), Duration: 18 s

Build

dotnet-sqltest is build with .NET 6 and 7.

Powered by:

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

This package has no dependencies.

Version Downloads Last Updated
1.4.4 247 8/27/2025
1.4.3 611 1/17/2025
1.4.2 1,281 9/19/2024
1.4.1 532 7/13/2024
1.4.0 526 4/17/2024
1.3.4 733 3/5/2024
1.3.3 472 3/4/2024
1.3.2 3,249 2/27/2024
1.3.1 1,471 12/12/2023
1.3.0 1,707 11/18/2023
1.2.0 8,085 10/16/2023
1.1.1 2,406 9/12/2023
1.1.0 2,459 6/21/2023
1.0.5 2,321 4/4/2023
1.0.4 2,626 4/4/2023
1.0.3 2,469 3/1/2023
1.0.2 3,349 12/11/2022
1.0.1 3,242 11/26/2022
1.0.0 1,796 11/13/2022
0.6.6 2,674 11/13/2022
0.6.5 786 11/11/2022
0.6.4 935 10/14/2022
0.6.3 1,173 8/16/2022
0.6.2 1,302 7/19/2022
0.6.1 1,073 7/6/2022
0.6.0 1,079 6/8/2022
0.5.9 926 6/1/2022
0.5.8 1,057 5/23/2022
0.5.7 906 5/19/2022
0.5.6 929 5/11/2022
0.5.5 934 5/9/2022
0.5.4 895 5/9/2022
0.5.3 1,025 4/29/2022
0.5.2 870 4/29/2022
0.5.1 951 4/28/2022
0.5.0 917 4/26/2022
0.4.1 859 4/23/2022
0.4.0 820 4/22/2022
0.3.0 859 4/15/2022
0.2.0 894 4/13/2022
0.1.0 588 3/5/2022