Skip to content

Commit 98e0e92

Browse files
committed
revert test. update -r to --results-directory ../../codecov. https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test#options
1 parent 4e6ca8f commit 98e0e92

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Test Examples
2828
run: dotnet test ../examples/
2929
- name: Test & Code Coverage
30-
run: dotnet test --collect:"XPlat Code Coverage" -r codecov --verbosity normal
30+
run: dotnet test --collect:"XPlat Code Coverage" --results-directory ../../codecov --verbosity normal
3131
- name: Codecov
3232
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # 3.1.0
3333
with:

libraries/tests/AWS.Lambda.Powertools.Common.Tests/Core/PowertoolsEnvironmentTest.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,11 @@
55
using System.Xml.Linq;
66
using System.Xml.XPath;
77
using Xunit;
8-
using Xunit.Abstractions;
98

109
namespace AWS.Lambda.Powertools.Common.Tests;
1110

1211
public class PowertoolsEnvironmentTest : IDisposable
1312
{
14-
private readonly ITestOutputHelper _testOutputHelper;
15-
16-
public PowertoolsEnvironmentTest(ITestOutputHelper testOutputHelper)
17-
{
18-
_testOutputHelper = testOutputHelper;
19-
}
20-
2113
[Fact]
2214
public void Set_Execution_Environment()
2315
{
@@ -77,14 +69,7 @@ public void Should_Use_Aspect_Injector_281()
7769
{
7870
// This test must be present until Issue: https://github.com/pamidur/aspect-injector/issues/220 is fixed
7971

80-
var path = "../../../../../src/Directory.Packages.props";
81-
// Test to see if running in CI/CD and add an extra ../
82-
if (Environment.CurrentDirectory.EndsWith("codecov"))
83-
{
84-
path = "../../../../../../src/Directory.Packages.props";
85-
}
86-
87-
var directory = Path.GetFullPath(path);
72+
var directory = Path.GetFullPath("../../../../../src/Directory.Packages.props");
8873
var doc = XDocument.Load(directory);
8974

9075
var packageReference = doc.XPathSelectElements("//PackageVersion")

0 commit comments

Comments
 (0)