Skip to content

Commit

Permalink
enable unittests (#81)
Browse files Browse the repository at this point in the history
* fixed the action to use run the tests
* change Tests project to also use .net 4.8.1 (like the rest)
  • Loading branch information
nimrof authored Mar 15, 2024
1 parent 00b11b6 commit 52384a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
- name: Add Packages
run: |
nuget install EDSEditorGUI/packages.config -OutputDirectory packages
# nuget install Tests/packages.config -OutputDirectory packages
nuget install Tests/packages.config -OutputDirectory packages
- name: Build
# run: make all # builds the Debug configuration
run: msbuild EDSEditorGUI /property:Configuration=Release
run: |
msbuild /property:Configuration=Release
msbuild /property:Configuration=Debug
# run: dotnet build --no-restore
# - name: Test
# run: dotnet test --no-build --verbosity normal
- name: Test
run: |
dotnet test --no-build --verbosity normal
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down
14 changes: 7 additions & 7 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Tests</RootNamespace>
<AssemblyName>Tests</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
Expand Down Expand Up @@ -114,11 +114,11 @@
<Error Condition="!Exists('..\packages\xunit.runner.console.2.4.2\build\xunit.runner.console.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\xunit.runner.console.2.4.2\build\xunit.runner.console.props'))" />
</Target>
<Import Project="..\packages\xunit.core.2.4.2\build\xunit.core.targets" Condition="Exists('..\packages\xunit.core.2.4.2\build\xunit.core.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

0 comments on commit 52384a5

Please sign in to comment.