Skip to content

Commit

Permalink
Fix CPM affecting acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OsirisTerje committed Aug 27, 2024
1 parent 94be89a commit c526f48
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public static void User_tests_get_the_version_of_Mono_Cecil_referenced_from_the_
<PropertyGroup>
<TargetFrameworks>{string.Join(";", TargetFrameworks)}</TargetFrameworks>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally><Deterministic>false</Deterministic>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -67,6 +68,7 @@ public static void Engine_uses_its_bundled_version_of_Mono_Cecil_instead_of_the_
<PropertyGroup>
<TargetFrameworks>{string.Join(";", TargetFrameworks)}</TargetFrameworks>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally><Deterministic>false</Deterministic>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ protected IsolatedWorkspace CreateTestWorkspace(string framework)
<PropertyGroup>
<TargetFramework>{framework}</TargetFramework>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally><Deterministic>false</Deterministic>
</PropertyGroup>
<ItemGroup>
Expand Down
18 changes: 18 additions & 0 deletions src/NUnit.TestAdapter.Tests.Acceptance/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# How to run the acceptance tests

## Running the tests by command line

```cmd
build -t acceptance
```

This will build and package the test adapter and run the acceptance tests.

## Running the tests in Visual Studio

You can also run the acceptance tests in Visual Studio.
To do this, open the solution in Visual Studio and run the `NUnit.TestAdapter.Tests.Acceptance` Tests from the Test Explorer.

Note: Running the acceptance tests in Visual Studio require that the package are built and packaged on commandline before running the tests.
This will create the `.acceptance` directory and add the package to the `package` directory.

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ private IsolatedWorkspace CreateSingleTargetWorkspace(string fileName, SingleFra
<PropertyGroup>
<TargetFramework>{source.Framework}</TargetFramework>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -105,6 +106,7 @@ private IsolatedWorkspace CreateMultiTargetWorkspace(string fileName, MultiFrame
<PropertyGroup>
<TargetFrameworks>{string.Join(";", source.Frameworks)}</TargetFrameworks>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -181,6 +183,7 @@ public void Legacy_csproj_with_PackageReference()
<TargetFrameworkVersion>{LegacyProjectTargetFrameworkVersion}</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally><Deterministic>false</Deterministic>
</PropertyGroup>
<PropertyGroup Condition="" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -251,6 +254,7 @@ public void Legacy_vbproj_with_PackageReference()
<MyType>Windows</MyType>
<TargetFrameworkVersion>{LegacyProjectTargetFrameworkVersion}</TargetFrameworkVersion>
<Deterministic>true</Deterministic>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally><Deterministic>false</Deterministic>
</PropertyGroup>
<PropertyGroup Condition="" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "">
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public static void Single_target_csproj(SingleFrameworkSource source)
<PropertyGroup>
<TargetFramework>{source.Framework}</TargetFramework>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally><Deterministic>false</Deterministic>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit c526f48

Please sign in to comment.