Skip to content

Commit

Permalink
Added pics to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
delano committed Jul 18, 2010
1 parent cc748b0 commit 9afe10d
Showing 1 changed file with 3 additions and 36 deletions.
39 changes: 3 additions & 36 deletions README.rdoc
Expand Up @@ -59,52 +59,19 @@ All code before the first test definition is assumed to be setup code. All code

Try ships with a command-line tool called <tt>try</tt>. When called with no arguments, it will look for files ending with _try.rb in the current directory, or in the subfolder try.

$ bin/try
Ruby 1.8.7 @ Sun Jul 18 11:55:06 -0400 2010

try/step1_try.rb PASS
try/step2_try.rb PASS
try/step3_try.rb PASS
try/step4_try.rb SKIP

12 of 12 tests passed
3 of 3 batches passed (1 skipped)
http://delano.github.com/tryouts/screens/tryouts-2.0-success.png

You can also supply a specific file to test.

$ try path/2/test.rb

If all tests pass, try exits with a 0. Otherwise it exits with the number of tests that failed.

$ bin/try
Ruby 1.8.7 @ Sun Jul 18 14:16:00 -0400 2010

try/step1_try.rb PASS
try/step2_try.rb FAIL

## some addition
6 a = 10
7 b = 2
8 a + b + 1
9 # => 4
13 != 4

# test ignores comments before expectations
19 'foo'
20 # ignored comment
21 # ignored comment
22 #=> 'foo2'
"foo" != "foo2"

try/step3_try.rb PASS
try/step4_try.rb SKIP

10 of 12 tests passed
2 of 3 batches passed (1 skipped)
http://delano.github.com/tryouts/screens/tryouts-2.0-failure.png

$ echo $?
2

== Credits

* delano[http://github.com/delano]
Expand Down

0 comments on commit 9afe10d

Please sign in to comment.