You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,17 @@ $ ruby test/debug/bp_test.rb -h # to see all the test options
26
26
```
27
27
28
28
## Generate Tests
29
+
29
30
There is a test generator in `debug.rb` project to make it easier to write tests.
31
+
30
32
### Quickstart
33
+
31
34
This section shows you how to create test file by test generator. For more advanced informations on creating tests, please take a look at [gentest options](#gentest-options). (You can also check by `$bin/gentest -h`)
35
+
32
36
#### 1. Create a target file for debuggee.
37
+
33
38
Let's say, we created `target.rb` which is located in top level directory of debugger.
39
+
34
40
```ruby
35
41
moduleFoo
36
42
classBar
@@ -42,11 +48,15 @@ module Foo
42
48
bar =Bar.new
43
49
end
44
50
```
51
+
45
52
#### 2. Run `gentest` as shown in the example below.
53
+
46
54
```shell
47
55
$ bin/gentest target.rb
48
56
```
57
+
49
58
#### 3. Debugger will be executed. You can type any debug commands.
0 commit comments