Nunit3: Debug of Testcases. => No breakpoints hit with console-runner
-
I cannot debug (set breakpoints,...) my UnitTests with NUnit3. What works already My Test-Dll's contain all the tests. They are executed and the result is displayed correctly in the output-window when I run them with the console-runner. So, the test-setup itself seems to be correct. What I want: I want to DEBUG my tests when they are executed with the console-runner and stop at breakpoints. What I did so far: => I create a Dll, which contains the testcases/-fixtures. => I have set this Dll-Project as startup-project => At Properties | Debug of the Dll-Project I select the console-runner as"Start external Program" and I add the command-line arguments ( my dll ) => I set breakpoints in my test-code => I start a debug-session: The tests are executed, but not breakpoints are hit It seems, I misunderstand some concept completely
-
I cannot debug (set breakpoints,...) my UnitTests with NUnit3. What works already My Test-Dll's contain all the tests. They are executed and the result is displayed correctly in the output-window when I run them with the console-runner. So, the test-setup itself seems to be correct. What I want: I want to DEBUG my tests when they are executed with the console-runner and stop at breakpoints. What I did so far: => I create a Dll, which contains the testcases/-fixtures. => I have set this Dll-Project as startup-project => At Properties | Debug of the Dll-Project I select the console-runner as"Start external Program" and I add the command-line arguments ( my dll ) => I set breakpoints in my test-code => I start a debug-session: The tests are executed, but not breakpoints are hit It seems, I misunderstand some concept completely
Have you copied your pdb files in as well?
This space for rent
-
Have you copied your pdb files in as well?
This space for rent
-
I cannot debug (set breakpoints,...) my UnitTests with NUnit3. What works already My Test-Dll's contain all the tests. They are executed and the result is displayed correctly in the output-window when I run them with the console-runner. So, the test-setup itself seems to be correct. What I want: I want to DEBUG my tests when they are executed with the console-runner and stop at breakpoints. What I did so far: => I create a Dll, which contains the testcases/-fixtures. => I have set this Dll-Project as startup-project => At Properties | Debug of the Dll-Project I select the console-runner as"Start external Program" and I add the command-line arguments ( my dll ) => I set breakpoints in my test-code => I start a debug-session: The tests are executed, but not breakpoints are hit It seems, I misunderstand some concept completely
Maybe this will help: [c# - How do I run NUnit in debug mode from Visual Studio? - Stack Overflow](https://stackoverflow.com/questions/759854/how-do-i-run-nunit-in-debug-mode-from-visual-studio)
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
Maybe this will help: [c# - How do I run NUnit in debug mode from Visual Studio? - Stack Overflow](https://stackoverflow.com/questions/759854/how-do-i-run-nunit-in-debug-mode-from-visual-studio)
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
It does not help. I was already aware of this :( But thank you very much ! ! ! I searched a lot of links, but all I found is referencing quite old versions of Nunit. I use NUnit.Console-3.7.0. All of my tests are executed "perfectly". The only problem is: Breakpoints are not hit
-
It does not help. I was already aware of this :( But thank you very much ! ! ! I searched a lot of links, but all I found is referencing quite old versions of Nunit. I use NUnit.Console-3.7.0. All of my tests are executed "perfectly". The only problem is: Breakpoints are not hit
Maybe try a newer version (3.9): [Downloads](http://nunit.org/download/)
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal