Skip to content

Commit

Permalink
Remove unused CodeCov and OpenCover dependencies.
Browse files Browse the repository at this point in the history
Remove vestigial .axoCover settings as well.
  • Loading branch information
Tkael committed Jan 8, 2024
1 parent 99ffcf6 commit c1968cf
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 80 deletions.
19 changes: 0 additions & 19 deletions .axoCover/settings.json

This file was deleted.

20 changes: 20 additions & 0 deletions .github/actions/Test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Test'
description: 'Run tests'
inputs:
target-path:
description: The path to the test adapter that should be used to run the tests
required: true
target-args:
description: The arguments to be passed to the test adapter
required: false
default: ""
runs:
using: composite
steps:
- name: Run tests
id: runTests
run: |
$runTestCmd = "${{ inputs.target-path }} ${{ inputs.target-args }}"
ECHO Invoking... $runTestCmd
Invoke-Expression $runTestCmd
shell: pwsh
42 changes: 0 additions & 42 deletions .github/actions/TestWithCoverage/action.yml

This file was deleted.

14 changes: 3 additions & 11 deletions .github/workflows/ContinuousIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,8 @@ jobs:
uses: darenm/Setup-VSTest@d9a5dffa3f11d9c27ec42eb69515d3aaeaad9ef8
- name: Make a TestResults directory
run: mkdir -p ./TestResults
- name: Test our solution and generate a coverage report using OpenCover
uses: ./.github/actions/TestWithCoverage
- name: Test our solution
uses: ./.github/actions/Test
with:
opencover-console-path: \.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe
opencover-console-args: -mergebyhash -skipautoprops -excludebyattribute:*.ExcludeFromCodeCoverage*,*.GeneratedCodeAttribute* -excludebyfile:*\*.Designer.cs,*.xaml -filter:"+[Eddi*]* +[Utilities*]* +[Tests*]UnitTests*" -register:Path32 -returntargetcode
target-path: vstest.console.exe
target-args: Tests\bin\Release\Tests.dll /tests:UnitTests /Parallel /InIsolation /Blame
output-path: ./TestResults/coverage.xml
- name: Upload coverage to CodeCov (ref. https://github.com/codecov/codecov-action)
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
with:
files: TestResults/coverage.xml
fail_ci_if_error: false # Specify if CI pipeline should fail when Codecov runs into errors during upload. Defaults to false
target-args: Tests\bin\Release\Tests.dll /tests:UnitTests /Parallel /InIsolation /Blame
9 changes: 4 additions & 5 deletions EDDI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{21887F65-3357-4D63-890C-CDDBDDD9DB14}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
codecov.yml = codecov.yml
docs\Contributing.md = docs\Contributing.md
Contributors.md = Contributors.md
crowdin.yml = crowdin.yml
Directory.Build.props = Directory.Build.props
images\Directory.jpg = images\Directory.jpg
Directory.Build.targets = Directory.Build.targets
images\Directory.jpg = images\Directory.jpg
EDDI\EDDI.ico = EDDI\EDDI.ico
Installer.iss = Installer.iss
docs\issue_template.md = docs\issue_template.md
Expand Down Expand Up @@ -297,9 +296,9 @@ Global
{7D25AF37-6EF2-4210-B079-14672BECDBB0} = {DBAE065B-DD96-4349-9189-D0935280BB0B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
RESX_TaskErrorCategory = Message
RESX_AutoCreateNewLanguageFiles = True
RESX_ShowErrorsInErrorList = False
SolutionGuid = {28C2EDB6-0FA0-409F-987C-7A24F542D0CF}
RESX_ShowErrorsInErrorList = False
RESX_AutoCreateNewLanguageFiles = True
RESX_TaskErrorCategory = Message
EndGlobalSection
EndGlobal
3 changes: 0 additions & 3 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version>
</PackageReference>
<PackageReference Include="OpenCover">
<Version>4.6.519</Version>
</PackageReference>
<PackageReference Include="RestSharp">
<Version>106.13.0</Version>
</PackageReference>
Expand Down

0 comments on commit c1968cf

Please sign in to comment.