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. Unit Testing Framework

Unit Testing Framework

Scheduled Pinned Locked Moved The Lounge
testingbeta-testinghelpquestion
10 Posts 10 Posters 3 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.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    Just curious, for those of you using Unit Tests, what testing framework are you using and why?

    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

    M Mircea NeacsuM M J R 9 Replies Last reply
    0
    • K Kevin Marois

      Just curious, for those of you using Unit Tests, what testing framework are you using and why?

      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      we baked our own for C++ code. We also use googletest for newer projects. For C#, xunit (but I've not used it personally)

      CI/CD = Continuous Impediment/Continuous Despair

      1 Reply Last reply
      0
      • K Kevin Marois

        Just curious, for those of you using Unit Tests, what testing framework are you using and why?

        If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

        Mircea NeacsuM Offline
        Mircea NeacsuM Offline
        Mircea Neacsu
        wrote on last edited by
        #3

        UTPP: C++ Unit Test Framework[^]. My own re-implementation of UnitTest++. Small, header only, easy to use.

        Mircea

        1 Reply Last reply
        0
        • K Kevin Marois

          Just curious, for those of you using Unit Tests, what testing framework are you using and why?

          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          I'm using VS's unit test framework as a wrapper for integration tests written in a fluent syntax for testing web API's[^]. IMO, 99% of pure unit testing is pointless. :-D

          Latest Article:
          Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

          1 Reply Last reply
          0
          • K Kevin Marois

            Just curious, for those of you using Unit Tests, what testing framework are you using and why?

            If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

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

            JUnit4 + Mockito + AssertJ is the setup I'm using right now; partly because that's what was already being used but I've also grown to like them. I use NUnit when I do C# so JUnit is right up my alley; Mockito is just great period; and I like AssertJ's fluent style over something like hamcrest.

            1 Reply Last reply
            0
            • K Kevin Marois

              Just curious, for those of you using Unit Tests, what testing framework are you using and why?

              If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

              R Offline
              R Offline
              r_hyde
              wrote on last edited by
              #6

              C# developer here. I've been using xUnit with Moq and Fluent Assertions for some time now. To the extent that I write unit tests (which is less than the zeitgeist would suggest I should), I find this combo is decently enjoyable to work with.

              1 Reply Last reply
              0
              • K Kevin Marois

                Just curious, for those of you using Unit Tests, what testing framework are you using and why?

                If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                S Offline
                S Offline
                Southmountain
                wrote on last edited by
                #7

                NUNIT for C#

                diligent hands rule....

                1 Reply Last reply
                0
                • K Kevin Marois

                  Just curious, for those of you using Unit Tests, what testing framework are you using and why?

                  If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                  J Offline
                  J Offline
                  Jacquers
                  wrote on last edited by
                  #8

                  For .NET - xUnit, because the company says so. For Angular - Jest / Mocha, also because the company says so :P

                  1 Reply Last reply
                  0
                  • K Kevin Marois

                    Just curious, for those of you using Unit Tests, what testing framework are you using and why?

                    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #9

                    If I use it, NUnit or xUnit. NUnit because it is (used to be?) the default in Visual Studio. xUnit because Microsoft said so and there are now standard xUnit project templates available. I've found the two to be interchangeable for the limited amount of tests I run.

                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                    1 Reply Last reply
                    0
                    • K Kevin Marois

                      Just curious, for those of you using Unit Tests, what testing framework are you using and why?

                      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      I'm starting a new job in the near future, and they use Selenium with (I think) nUnit. The place I'm at right now doesn't have any unit or integration testing in place - at all.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      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