Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Nunit3: Debug of Testcases. => No breakpoints hit with console-runner

Nunit3: Debug of Testcases. => No breakpoints hit with console-runner

Scheduled Pinned Locked Moved C#
debuggingworkspace
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frygreen
    wrote on last edited by
    #1

    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

    P L 2 Replies Last reply
    0
    • F Frygreen

      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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Have you copied your pdb files in as well?

      This space for rent

      F 1 Reply Last reply
      0
      • P Pete OHanlon

        Have you copied your pdb files in as well?

        This space for rent

        F Offline
        F Offline
        Frygreen
        wrote on last edited by
        #3

        yes, the complete dll-bunch is in one single directory. Together with all pdb's

        1 Reply Last reply
        0
        • F Frygreen

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          F 1 Reply Last reply
          0
          • L Lost User

            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

            F Offline
            F Offline
            Frygreen
            wrote on last edited by
            #5

            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

            L 1 Reply Last reply
            0
            • F Frygreen

              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

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups