Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MSTest.SDK #46

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
# No "with: dotnet-version" specified -> use global.json
- name: Setup x86 .NET SDK
uses: actions/setup-dotnet@v4
with:
architecture: x86
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- run: dotnet restore
- run: dotnet build --configuration Release --no-restore
- name: Shrink C drive and create a ReFS E drive, then run tests
Expand All @@ -41,5 +45,5 @@ jobs:
@rem CODESYNC: WindowsReFSDriveSession.cs
set CoW_Test_ReFS_Drive=E:\

dotnet test --no-restore
dotnet test --configuration Release --no-build
shell: cmd
3 changes: 3 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"sdk": {
"version": "8.0.101",
"rollForward": "latestMinor"
},
"msbuild-sdks": {
"MSTest.Sdk": "3.6.4"
}
}
2 changes: 1 addition & 1 deletion tests/unit/32bit/CopyOnWriteTests32.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="MSTest.Sdk">

<Import Project="../CopyOnWriteTests.props"/>

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/64bit/CopyOnWriteTests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="MSTest.Sdk">

<Import Project="../CopyOnWriteTests.props" />

Expand Down
6 changes: 0 additions & 6 deletions tests/unit/CopyOnWriteTests.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
<Compile Include="../*.cs" />
<Compile Include="../Windows/*.cs" />
Expand Down
Loading