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. The Lounge
  3. .NET Core/Standard and nUnit

.NET Core/Standard and nUnit

Scheduled Pinned Locked Moved The Lounge
csharpasp-netdotnetvisual-studiohelp
5 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.
  • J Offline
    J Offline
    Jon McKee
    wrote on last edited by
    #1

    So after spending the better part of my Sunday and a good bit of time today trying to get nUnit tests working in a VS2015 .NET Core (netstandard1.6) class library, I gave up and installed VS2017. Took maybe 5 minutes to move code over and everything works fine :doh: Now I'm wondering why it wouldn't work in VS2015 considering it's the same NuGet packages - Microsoft.NET.Test.Sdk 15.5, nUnit 3.9, and nUnit3TestAdapter 3.9. Anyone have a similar issue and find out the cause? I'm just curious at this point. It wouldn't even recognize the tests in VS2015 :confused:

    S abmvA 2 Replies Last reply
    0
    • J Jon McKee

      So after spending the better part of my Sunday and a good bit of time today trying to get nUnit tests working in a VS2015 .NET Core (netstandard1.6) class library, I gave up and installed VS2017. Took maybe 5 minutes to move code over and everything works fine :doh: Now I'm wondering why it wouldn't work in VS2015 considering it's the same NuGet packages - Microsoft.NET.Test.Sdk 15.5, nUnit 3.9, and nUnit3TestAdapter 3.9. Anyone have a similar issue and find out the cause? I'm just curious at this point. It wouldn't even recognize the tests in VS2015 :confused:

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      I dunno since I use xUnit now, when I discovered that Microsoft is doing so. xUnit works well in VS2017. I am surprised that NUnit doesn't work for you though.. did you install the VS runner?

      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

      J 1 Reply Last reply
      0
      • S Super Lloyd

        I dunno since I use xUnit now, when I discovered that Microsoft is doing so. xUnit works well in VS2017. I am surprised that NUnit doesn't work for you though.. did you install the VS runner?

        A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

        J Offline
        J Offline
        Jon McKee
        wrote on last edited by
        #3

        Everything works in VS2017 just fine but for some reason wouldn't in VS2015. Same runner which supposedly should work for VS2012 and up (nUnit3TestAdapter 3.9) according to its documentation. So I'm just left scratching my head on what was going wrong in VS2015 :doh:

        1 Reply Last reply
        0
        • J Jon McKee

          So after spending the better part of my Sunday and a good bit of time today trying to get nUnit tests working in a VS2015 .NET Core (netstandard1.6) class library, I gave up and installed VS2017. Took maybe 5 minutes to move code over and everything works fine :doh: Now I'm wondering why it wouldn't work in VS2015 considering it's the same NuGet packages - Microsoft.NET.Test.Sdk 15.5, nUnit 3.9, and nUnit3TestAdapter 3.9. Anyone have a similar issue and find out the cause? I'm just curious at this point. It wouldn't even recognize the tests in VS2015 :confused:

          abmvA Offline
          abmvA Offline
          abmv
          wrote on last edited by
          #4

          NUnit Visual Studio Project Loader 3.7 Released[^]

          Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

          We are in the beginning of a mass extinction. - Greta Thunberg

          J 1 Reply Last reply
          0
          • abmvA abmv

            NUnit Visual Studio Project Loader 3.7 Released[^]

            Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

            J Offline
            J Offline
            Jon McKee
            wrote on last edited by
            #5

            Unless I'm missing something that is an extension for the nUnit engine/GUI to load VS projects. I was testing inside VS itself with the Test SDK and nUnit3TestAdapter. I tried a few older versions of the NuGet packages in case something broke when they added the csproj support since VS2015 .NET Core class libraries still use the project.json format but had the same results. Oh well, as good an excuse as any to finally move over to VS2017 for personal projects :thumbsup:

            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