File: example.txt

package info (click to toggle)
ruby-zentest 4.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 536 kB
  • sloc: ruby: 3,210; makefile: 13
file content (42 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42



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 http://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