Skip to content

Tests cannot be found when using [AllureXunitTheory] along with TheoryData #28

Open
panospt opened this issue Sep 6, 2022 · 0 comments

Comments

@panospt
Copy link

panospt commented Sep 6, 2022

When trying to run a parameterized test using [AllureXunitTheory] attribute along with [MemberData] pointing to a static class member, tests cannot be found and executed.
As static class I use the TheoryData class instead of using IEnumerable for various reasons, but it seems it's not supported yet.

Please note that in my current solution I am using:
Allure version: 2.19.0
Allure.XUnit: 2.1.3
xunit: 2.4.1
xunit.runner.visualstudio: 2.4.5
Microsoft.AspNetCore.Mvc.Testing: 6.0.8
Microsoft.NET.Test.Sdk: 17.3.1
Visual Studio version: 4.8.04084
.NET 6

@panospt panospt changed the title Test execution cannot be launched in Test Explorer when using [AllureXunitTheory] Test execution cannot be launched in Test Explorer when using [AllureXunitTheory] along with TheoryData Oct 5, 2022
@panospt panospt changed the title Test execution cannot be launched in Test Explorer when using [AllureXunitTheory] along with TheoryData Tests cannot be found when using [AllureXunitTheory] along with TheoryData Oct 5, 2022
@adamjl217 adamjl217 mentioned this issue May 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant