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. Other Discussions
  3. The Weird and The Wonderful
  4. Tests failing?

Tests failing?

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
8 Posts 5 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.
  • R Offline
    R Offline
    Rob Grainger
    wrote on last edited by
    #1

    Just noticed that in the Unit Tests I've written, someone as taken a novel approach to refactoring. When refactoring causes a test to fail, his approach is simply to comment out the lines that cause the failure. I now need to go and check nothing has broken in the process - which seems unlikely.

    "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

    D P 2 Replies Last reply
    0
    • R Rob Grainger

      Just noticed that in the Unit Tests I've written, someone as taken a novel approach to refactoring. When refactoring causes a test to fail, his approach is simply to comment out the lines that cause the failure. I now need to go and check nothing has broken in the process - which seems unlikely.

      "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      What is wrong with problem elimination? This is a joke in case you miss the icon

      M 1 Reply Last reply
      0
      • D dan sh

        What is wrong with problem elimination? This is a joke in case you miss the icon

        M Offline
        M Offline
        Manfred Rudolf Bihy
        wrote on last edited by
        #3

        d@nish wrote:

        What is wrong with problem elimination?

        Tell that a heart surgeon. You: "Dr. I'm having problems with my heart lately." Dr: "Ok son, don't you fear, I'll cut that heart out and you'll no longer have any problems with your heart" You: "Wow Doc, that sounds reasonable. Slice away!" I'd appreciate it if you would let me watch and video the procedure. After the operation I've planned in a small interview with the patient, to see how he liked the procedure. :~ Cheers!

        "I had the right to remain silent, but I didn't have the ability!"

        Ron White, Comedian

        D 1 Reply Last reply
        0
        • M Manfred Rudolf Bihy

          d@nish wrote:

          What is wrong with problem elimination?

          Tell that a heart surgeon. You: "Dr. I'm having problems with my heart lately." Dr: "Ok son, don't you fear, I'll cut that heart out and you'll no longer have any problems with your heart" You: "Wow Doc, that sounds reasonable. Slice away!" I'd appreciate it if you would let me watch and video the procedure. After the operation I've planned in a small interview with the patient, to see how he liked the procedure. :~ Cheers!

          "I had the right to remain silent, but I didn't have the ability!"

          Ron White, Comedian

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          And that's how Ironman is made.

          M 1 Reply Last reply
          0
          • D dan sh

            And that's how Ironman is made.

            M Offline
            M Offline
            Manfred Rudolf Bihy
            wrote on last edited by
            #5

            No, no, no! There was no mention of replacing your heart with something that works to the same effect. Just a little heartectomy, Inka style if you'd prefer that. Cheers!

            "I had the right to remain silent, but I didn't have the ability!"

            Ron White, Comedian

            D 1 Reply Last reply
            0
            • M Manfred Rudolf Bihy

              No, no, no! There was no mention of replacing your heart with something that works to the same effect. Just a little heartectomy, Inka style if you'd prefer that. Cheers!

              "I had the right to remain silent, but I didn't have the ability!"

              Ron White, Comedian

              D Offline
              D Offline
              dan sh
              wrote on last edited by
              #6

              I wouldn't mind that after next 50 years.

              L 1 Reply Last reply
              0
              • R Rob Grainger

                Just noticed that in the Unit Tests I've written, someone as taken a novel approach to refactoring. When refactoring causes a test to fail, his approach is simply to comment out the lines that cause the failure. I now need to go and check nothing has broken in the process - which seems unlikely.

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                The only thing more useless than a test that always fails is a test that always succeeds.

                1 Reply Last reply
                0
                • D dan sh

                  I wouldn't mind that after next 50 years.

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

                  It's like Taste Failing. :laugh:

                  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