File: example.txt [ZenTest-4.11.0 Documentation]

### Home Classes Methods

### Files

- History.txt
- Manifest.txt
- README.txt
- how_to_use_zentest.txt
- example.txt

### Class Index

Quicksearch

- Autotest
- Autotest::AutoUpdate
- Autotest::Bundler
- Autotest::Isolate
- Autotest::Once
- Autotest::Preload
- Autotest::RCov
- Autotest::Restart
- Autotest::Timestamp
- FunctionalTestMatrix
- Module
- Multiruby
- UnitDiff
- ZenTest
- ZenTestMapping

No matching classes.

What do we do to get people writing tests? What do we do to get people writing tests first?

I didn't know it's name, but apparently it's the Lettuce Principal, (see blog.toolshed.com/2003/03/the_lettuce_pri.html).

    We NEED to make testing as easy as possible to get them testing.

Class Under Test Test Class ######################################################################

module Something module TestSomething

    class Thingy                            class TestThingy
      def do_something                        def test_do_something_normal
        # ...                                   thingy = Thingy.new
      end                                       result = thingy.do_something
    end                                         assert(result.blahblah)

end end

        def test_do_something_edgecase
          thingy = Thingy.new
          result = thingy.do_something
          assert(result.blahblah)
        end
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.