Xunit.Gherkin.Quick icon indicating copy to clipboard operation
Xunit.Gherkin.Quick copied to clipboard

Question about debugging the base project

Open aaronjrich opened this issue 7 years ago • 2 comments

Wondering if you can give me any pointers on how to debug the base project so as to observe it discover and define the scenarios, etc. This appears to be something that's happening at compile time? Thanks much.

aaronjrich avatar May 17 '18 19:05 aaronjrich

Sorry, I have no idea. I have tried different kinds of tricks such as attaching from another VS instance, or Debugger.Launch() but no luck. That's another reason of why I'm trying to refactor the codebase right now - to at least unit test more of it.

Currently it's written by trial and error mostly.

ttutisani avatar May 18 '18 01:05 ttutisani

@aaronjrich, I looked a bit into how this project works with Xunit in relation to #4 - i'm pritty confident that it happens the magic happens in Xunit.

Most of the Xunit logic is instantiated from the class ExtensibilityPointFactory.cs in the Xunit.sdk.

I think the only way to observer the discovery is to include the entire Xunit stack in this project...

  • anyway, i think it is necessary do get very intimate with Xunit in orderto understand that par of the library...

ChristianPejrup avatar May 21 '18 13:05 ChristianPejrup