From 7d9232ba350df32d62ffa3c28d09f474b3accb68 Mon Sep 17 00:00:00 2001 From: Oski Kervinen Date: Mon, 30 Jan 2023 12:11:53 +0200 Subject: [PATCH] Make usable as a NuGet package * End assembly file name in .TestAdapter to make VS recognize it from a nuget package. * Create Catch2TestAdapter.nuspec to configure the nuget package. I tried embedding the nuget metadata in the project, but could not get it to support the exotic combination of having .NET assemblies that are meant to be installed in a native project. See https://github.com/microsoft/vstest/blob/main/docs/RFCs/0004-Adapter-Extensibility.md Command to generate the package: `nuget pack .\Catch2TestAdapter.csproj -Version 1.8.0 -IncludeReferencedProjects -p Configuration=Debug` --- Libraries/Catch2.TestAdapter.nuspec | 30 +++++++++++++++++++ .../Catch2TestAdapter.csproj | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 Libraries/Catch2.TestAdapter.nuspec diff --git a/Libraries/Catch2.TestAdapter.nuspec b/Libraries/Catch2.TestAdapter.nuspec new file mode 100644 index 0000000..c715bc6 --- /dev/null +++ b/Libraries/Catch2.TestAdapter.nuspec @@ -0,0 +1,30 @@ + + + + Catch2.TestAdapter + $version$ + Visual Studio Test Adapter for Catch2 + JohnnyHendriks + JohnnyHendriks + https://github.com/JohnnyHendriks/TestAdapter_Catch2 + false + MIT + + Class library containing the Visual Studio Test Adapter for Catch2 + + + + native catch2 test adapter + + + + + + + + + + diff --git a/Libraries/Catch2TestAdapter/Catch2TestAdapter.csproj b/Libraries/Catch2TestAdapter/Catch2TestAdapter.csproj index 9e932d1..a7a14d6 100644 --- a/Libraries/Catch2TestAdapter/Catch2TestAdapter.csproj +++ b/Libraries/Catch2TestAdapter/Catch2TestAdapter.csproj @@ -12,7 +12,7 @@ Library Properties Catch2TestAdapter - Catch2TestAdapter + Catch2.TestAdapter v4.6 512