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

.net 8 -> preview7 #19

Merged
merged 3 commits into from
Aug 13, 2023
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 8.0.100-preview.7.23376.3
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 8.0.100-preview.7.23376.3
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion smink.UnitTests/RunUnitTestsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static string FindExampleTestProjectFolder(string here)
do
{
currentFolder = currentFolder.Parent;
var directories = currentFolder.GetDirectories(folderToFind);
var directories = currentFolder!.GetDirectories(folderToFind);
found = directories.Length != 0;
} while (!found && currentFolder != currentFolder.Root);

Expand Down
16 changes: 11 additions & 5 deletions smink.UnitTests/TestSuites/TestResultAdapters_xUnit/TestRun_.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ public void Failed_test_has_correct_Failure_Message() => _failedTest.Failure!.Me
Actual: False");

[Fact]
public void Failed_test_has_correct_Failure_StackTrace() => _failedTest.Failure!.StackTrace.Should().Be(
$@" at xUnit.ExampleTests.Set1.TestSuites.Adding_a_new_customer.When_the_customer_is_too_old.We_make_them_happy() in {_fixture.ExampleTestProjectFolder}/xUnit.ExampleTests.Set1/TestSuites/Adding_a_new_customer/When_the_customer_is_too_old.cs:line 12
public void Failed_test_has_correct_Failure_StackTrace()
{
// Need to split the assertion in two, because the path of the file varies per build environment (e.g. local or github)
_failedTest.Failure!.StackTrace.Should().StartWith(
$@" at xUnit.ExampleTests.Set1.TestSuites.Adding_a_new_customer.When_the_customer_is_too_old.We_make_them_happy() in /");

_failedTest.Failure!.StackTrace.Should().EndWith(
$@"smink/ExampleTestProjects/xUnit.ExampleTests/xUnit.ExampleTests.Set1/TestSuites/Adding_a_new_customer/When_the_customer_is_too_old.cs:line 12
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)");

at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)");

}
}
7 changes: 3 additions & 4 deletions smink/smink.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.0-preview.6.23329.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0-preview.6.23329.11" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0-preview.6.23329.7" />
<!-- <PackageReference Include="Microsoft.XmlSerializer.Generator" Version="8.0.0-preview.4.23259.5" />-->
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.0-preview.7.23375.9" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0-preview.7.23375.9" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0-preview.7.23375.6" />

</ItemGroup>

Expand Down