summary refs log tree commit diff
path: root/doc/languages-frameworks/dotnet.section.md
diff options
context:
space:
mode:
authorIvarWithoutBones <ivar.scholten@protonmail.com>2021-10-27 20:36:50 +0200
committerIvarWithoutBones <ivar.scholten@protonmail.com>2021-11-01 02:06:54 +0100
commitaf339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d (patch)
treeba7a3fde1b52327954424948ca102122c6cebe4a /doc/languages-frameworks/dotnet.section.md
parent81251667f9ac14ffd421b82c0efecb7ece47da3e (diff)
downloadnixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.tar
nixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.tar.gz
nixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.tar.bz2
nixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.tar.lz
nixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.tar.xz
nixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.tar.zst
nixpkgs-af339c5cf87bdf8e51f2ffc5f1d1337ef9b9223d.zip
buildDotnetModule: add support for running unit tests
Diffstat (limited to 'doc/languages-frameworks/dotnet.section.md')
-rw-r--r--doc/languages-frameworks/dotnet.section.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/languages-frameworks/dotnet.section.md b/doc/languages-frameworks/dotnet.section.md
index 9bf96f3198a..f2a5efd05db 100644
--- a/doc/languages-frameworks/dotnet.section.md
+++ b/doc/languages-frameworks/dotnet.section.md
@@ -77,9 +77,13 @@ To package Dotnet applications, you can use `buildDotnetModule`. This has simila
 * `runtimeDeps` is used to wrap libraries into `LD_LIBRARY_PATH`. This is how dotnet usually handles runtime dependencies.
 * `buildType` is used to change the type of build. Possible values are `Release`, `Debug`, etc. By default, this is set to `Release`.
 * `dotnet-sdk` is useful in cases where you need to change what dotnet SDK is being used.
-* `dotnet-runtime` is useful in cases where you need to change what dotnet runtime is being used.
+* `dotnet-runtime` is useful in cases where you need to change what dotnet runtime is being used. This can be either a regular dotnet runtime, or an aspnetcore.
+* `dotnet-test-sdk` is useful in cases where unit tests expect a different dotnet SDK. By default, this is set to the `dotnet-sdk` attribute.
+* `testProjectFile` is useful in cases where the regular project file does not contain the unit tests. By default, this is set to the `projectFile` attribute.
+* `disabledTests` is used to disable running specific unit tests. This gets passed as: `dotnet test --filter "FullyQualifiedName!={}"`, to ensure compatibility with all unit test frameworks.
 * `dotnetRestoreFlags` can be used to pass flags to `dotnet restore`.
 * `dotnetBuildFlags` can be used to pass flags to `dotnet build`.
+* `dotnetTestFlags` can be used to pass flags to `dotnet test`.
 * `dotnetInstallFlags` can be used to pass flags to `dotnet install`.
 * `dotnetFlags` can be used to pass flags to all of the above phases.