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

Fix markup style error if test contains [ or ] #36

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Fix markup style error if test contains [ or ] #36

merged 1 commit into from
Jul 31, 2024

Conversation

kzu
Copy link
Member

@kzu kzu commented Jul 31, 2024

This can happen for test theories, for example.

This can happen for test theories, for example.
@kzu kzu added the enhancement New feature or request label Jul 31, 2024
@kzu kzu enabled auto-merge (rebase) July 31, 2024 18:19
@devlooped-bot
Copy link
Member

devlooped-bot commented Jul 31, 2024

3 failed 5 passed 3 failed 2 skipped
3 failed 5 passed 3 failed 2 skipped
2 failed 6 passed 2 failed 2 skipped

🧪 Details on macOS Unix 14.5.0
❌ Demo.Tests.Fails_With_Complex_StackTrace
   at Demo.Tests.Unexpected() in /_/src/Demo/Tests.cs:line 49
   at Demo.Tests.Run() in /_/src/Demo/Tests.cs:line 47
   at Demo.Tests.<Fails_With_Complex_StackTrace>b__6_0() in /_/src/Demo/Tests.cs:line 36
   at Demo.Tests.Fails_With_Complex_StackTrace() in /_/src/Demo/Tests.cs:line 38
❌ Demo.Tests.Fails_With_Output
   at Demo.Tests.Fails_With_Output() in /_/src/Demo/Tests.cs:line 30

> It was going so well...
> Yet you never know
> Which is why you sprinkle all these WriteLines 👀

❌ Demo.Tests.FailsOnlyOnUnix
   at Demo.Tests.FailsOnlyOnUnix() in /_/src/Demo/Tests.cs:line 45

✅ Demo.Tests.Parameterized(culture: "de")
✅ Demo.Tests.Parameterized(culture: "en")
✅ Demo.Tests.Parameterized(culture: "es")
✅ Demo.Tests.Parameterized(culture: "fr")
❔ Demo.Tests.Skipped_Test_Does_Not_Run => Shouldn't run for now :)

✅ Demo.Tests.Test_With_Output

> Hello, world from xunit ITestOutputHelper!

❔ Demo.Tests.WindowsOnlyTest => Test only runs on Win32NT
🧪 Details on Ubuntu 22.04.4 LTS
❌ Demo.Tests.Fails_With_Complex_StackTrace
   at Demo.Tests.Unexpected() in /_/src/Demo/Tests.cs:line 49
   at Demo.Tests.Run() in /_/src/Demo/Tests.cs:line 47
   at Demo.Tests.<Fails_With_Complex_StackTrace>b__6_0() in /_/src/Demo/Tests.cs:line 36
   at Demo.Tests.Fails_With_Complex_StackTrace() in /_/src/Demo/Tests.cs:line 38
❌ Demo.Tests.Fails_With_Output
   at Demo.Tests.Fails_With_Output() in /_/src/Demo/Tests.cs:line 30

> It was going so well...
> Yet you never know
> Which is why you sprinkle all these WriteLines 👀

❌ Demo.Tests.FailsOnlyOnUnix
   at Demo.Tests.FailsOnlyOnUnix() in /_/src/Demo/Tests.cs:line 45

✅ Demo.Tests.Parameterized(culture: "de")
✅ Demo.Tests.Parameterized(culture: "en")
✅ Demo.Tests.Parameterized(culture: "es")
✅ Demo.Tests.Parameterized(culture: "fr")
❔ Demo.Tests.Skipped_Test_Does_Not_Run => Shouldn't run for now :)

✅ Demo.Tests.Test_With_Output

> Hello, world from xunit ITestOutputHelper!

❔ Demo.Tests.WindowsOnlyTest => Test only runs on Win32NT
🧪 Details on Microsoft Windows 10.0.20348
❌ Demo.Tests.Fails_With_Complex_StackTrace
   at Demo.Tests.Unexpected() in /_/src/Demo/Tests.cs:line 49
   at Demo.Tests.Run() in /_/src/Demo/Tests.cs:line 47
   at Demo.Tests.<Fails_With_Complex_StackTrace>b__6_0() in /_/src/Demo/Tests.cs:line 36
   at Demo.Tests.Fails_With_Complex_StackTrace() in /_/src/Demo/Tests.cs:line 38
❌ Demo.Tests.Fails_With_Output
   at Demo.Tests.Fails_With_Output() in /_/src/Demo/Tests.cs:line 30

> It was going so well...
> Yet you never know
> Which is why you sprinkle all these WriteLines 👀

❔ Demo.Tests.FailsOnlyOnUnix => Test only runs on Unix
✅ Demo.Tests.Parameterized(culture: "de")
✅ Demo.Tests.Parameterized(culture: "en")
✅ Demo.Tests.Parameterized(culture: "es")
✅ Demo.Tests.Parameterized(culture: "fr")
❔ Demo.Tests.Skipped_Test_Does_Not_Run => Shouldn't run for now :)

✅ Demo.Tests.Test_With_Output

> Hello, world from xunit ITestOutputHelper!

✅ Demo.Tests.WindowsOnlyTest

> This test runs only on Windows

from dotnet-trx v42.42.199-pr36 on .NET 8.0.7 with 💜

@kzu kzu merged commit 76fa22f into main Jul 31, 2024
11 checks passed
@kzu kzu deleted the dev/test-style branch July 31, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants