Skip to content

Commit b4fd639

Browse files
authored
Update target framework moniker in test project (#455)
1 parent c8b4c44 commit b4fd639

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

appveyor.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ for:
4242
}
4343
test_script:
4444
- cmd: nuget install Appveyor.TestLogger
45-
# using correct --framework net6.0 does not produce report file (it does for --framework net60)
46-
- cmd: dotnet test SmartFormat.sln --test-adapter-path:. --logger:Appveyor /p:configuration=release /p:AltCover=true /p:AltCoverStrongNameKey="..\SmartFormat.snk" /p:AltCoverAssemblyExcludeFilter="SmartFormat.Tests|NUnit3.TestAdapter" /p:AltCoverAttributeFilter="ExcludeFromCodeCoverage" /p:AltCoverLineCover="true"
45+
- cmd: dotnet test SmartFormat.sln --framework net6.0 --test-adapter-path:. --logger:Appveyor /p:configuration=release /p:AltCover=true /p:AltCoverStrongNameKey="..\SmartFormat.snk" /p:AltCoverAssemblyExcludeFilter="SmartFormat.Tests|NUnit3.TestAdapter" /p:AltCoverAttributeFilter="ExcludeFromCodeCoverage" /p:AltCoverLineCover="true"
4746
- cmd: nuget install codecov -excludeversion
48-
- cmd: .\Codecov\Tools\win7-x86\codecov.exe -f ".\SmartFormat.Tests\coverage.net60.xml" -n net6.0win
47+
- cmd: .\Codecov\Tools\win7-x86\codecov.exe -f ".\SmartFormat.Tests\coverage.net6.0.xml" -n net6.0win
4948
artifacts:
5049
- path: 'artifacts\*.nupkg'
5150
type: NuGetPackage
@@ -69,6 +68,5 @@ for:
6968
- dotnet add ./SmartFormat.Tests/SmartFormat.Tests.csproj package AltCover
7069
- dotnet build SmartFormat.sln /verbosity:minimal /t:rebuild /p:configuration=release /nowarn:CS1591,CS0618
7170
test_script:
72-
# using correct --framework net6.0 does not produce report file (it does for --framework net60)
73-
- dotnet test SmartFormat.sln --no-build /p:configuration=release /p:AltCover=true /p:AltCoverStrongNameKey="../SmartFormat.snk" /p:AltCoverAssemblyExcludeFilter="SmartFormat.Tests|NUnit3.TestAdapter" /p:AltCoverAttributeFilter="ExcludeFromCodeCoverage" /p:AltCoverLineCover="true"
74-
- bash <(curl -s https://codecov.io/bash) -f ./SmartFormat.Tests/coverage.net60.xml -n net6.0linux
71+
- dotnet test SmartFormat.sln --no-build --framework net6.0 /p:configuration=release /p:AltCover=true /p:AltCoverStrongNameKey="../SmartFormat.snk" /p:AltCoverAssemblyExcludeFilter="SmartFormat.Tests|NUnit3.TestAdapter" /p:AltCoverAttributeFilter="ExcludeFromCodeCoverage" /p:AltCoverLineCover="true"
72+
- bash <(curl -s https://codecov.io/bash) -f ./SmartFormat.Tests/coverage.net6.0.xml -n net6.0linux

src/SmartFormat.Tests/SmartFormat.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Description>Unit tests for SmartFormat</Description>
55
<AssemblyTitle>SmartFormat.Test</AssemblyTitle>
66
<Authors>axuno gGmbH, Scott Rippey, Bernhard Millauer and other contributors.</Authors>
7-
<TargetFrameworks>net462;net60</TargetFrameworks>
7+
<TargetFrameworks>net462;net6.0</TargetFrameworks>
88
<DefineConstants>TRACE;DEBUG;RELEASE</DefineConstants>
99
<GenerateDocumentationFile>false</GenerateDocumentationFile>
1010
<AssemblyName>SmartFormat.Tests</AssemblyName>

0 commit comments

Comments
 (0)