Using Decorator with xUnit #551
-
I have followed the Decorators Page and CustomPlugin sample repo to create a Plugin in my own project. I'm trying to implement this with xUnit and above docs and repos are configured with nUnit. So I kept most of the config similar what is mentioned and have only replaced this part of the code with below var attribute = new CodeAttributeDeclaration(
"Xunit.TraitAttribute",
new CodeAttributeArgument("Category", new CodePrimitiveExpression("SmokeTest"))); But it doesn't add a line like Did anyone try implementing this with xUnit or knows how to move past this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Could you debug which methods are called? (Debugger or just logging). Maybe that could help in the analysis |
Beta Was this translation helpful? Give feedback.
I made quite a few changes and it got resolved in the end, one thing that help to start debugging was adding
Debugger.Launch();
call inInitialize()
so I could see logs while building the project.Above code that I shared, doesn't work for xUnit and it throws error, correct approach is as below