Stopping on exception, for .net framework #2213
-
I've took fork from xunit v2, and bugfixed it a little bit, but also added new feature - being able to stop on exception I've slightly modified original xunit source code to able to compile and debug for one platform only - but after that some of tests disappeared from unit test framework. Wondering also what is the target with xunit v3, when you're planning to release it ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I'm not clear how "stop on exceptions" is a test framework feature, as opposed to a debugger feature. Can you provide an example and/or intended usage? As for schedule, we don't have one, because work just continues and I'm unsure when 3.0 will be ready for RTW. I have been making steady progress, though! Please feel free to watch my Twitch streams to follow along and interact! |
Beta Was this translation helpful? Give feedback.
-
I have implemented this feature into xunit v2 fork - unfortunately my own xunit fork is not open source code at the moment, but I could contribute my own changes if necessary. At the moment system works for that I'm intercepting AppDomain.FirstChanceException and via separate config file I'm configuring whether or not to catch / not to catch given exception. I have tried also to send you mail to bradwilson at github dot com - but without any reply. (maybe not using this mail?) Once exception occurs and it's observed exception - process is halted and xunit sends mail to developer to debug that xunit session.
It would be nice to integrate my changes into xunit v3, but I haven't yet checked that source code. I had some issues with debugging xunit in overall, would like to ask you how you're doing it. At the moment I've disabled xunit unit testing, but I'm not very proud of doing this. |
Beta Was this translation helpful? Give feedback.
-
Sorry, this doesn't sound like a feature I believe we would be interested in. First chance exceptions are a normal part of the operation of the framework; trying to intercept and filter them is an extremely niche case. I believe you're best served by continuing with your own fork. |
Beta Was this translation helpful? Give feedback.
Sorry, this doesn't sound like a feature I believe we would be interested in. First chance exceptions are a normal part of the operation of the framework; trying to intercept and filter them is an extremely niche case.
I believe you're best served by continuing with your own fork.