Sha256: ba7f1d141d8f1c99f2281f6257d5ad1071301cc87b5cdb7c6ffc34bc23702564

Contents?: true

Size: 804 Bytes

Versions: 12

Compression:

Stored size: 804 Bytes

Contents



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.

	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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ZenTest-3.0.0 example.txt
ZenTest-3.1.0 example.txt
ZenTest-3.2.0 example.txt
ZenTest-3.3.0 example.txt
ZenTest-3.4.0 example.txt
ZenTest-3.4.1 example.txt
ZenTest-3.4.2 example.txt
ZenTest-3.4.3 example.txt
ZenTest-3.5.1 example.txt
ZenTest-3.5.2 example.txt
ZenTest-3.6.0 example.txt
ZenTest-3.6.1 example.txt