Skip to content

Instantly share code, notes, and snippets.

@joakimk
Created April 28, 2012 21:29
Show Gist options
  • Save joakimk/2522179 to your computer and use it in GitHub Desktop.
Save joakimk/2522179 to your computer and use it in GitHub Desktop.
Example of running testbot locally
MacbookAir:tmp $ rvm ree
MacbookAir:tmp $ gem install testbot
Fetching: testbot-0.6.4.gem (100%)
Successfully installed testbot-0.6.4
1 gem installed
MacbookAir:tmp $ testbot --server
testbot --runner --connect localhost
mkdir -p testbotdemo/test; cd testbotdemo
echo 'require "test/unit"' > test/demo_test.rb
echo 'class DemoTest < Test::Unit::TestCase; def test_first; end; end' >> test/demo_test.rb
testbot --test --connect localhostTestbot server started (pid: 57899)
MacbookAir:tmp $ testbot --runner --connect localhost
mkdir -p testbotdemo/test; cd testbotdemo
echo 'require "test/unit"' > test/demo_test.rb
echo 'class DemoTest < Test::Unit::TestCase; def test_first; end; end' >> test/demo_test.rb
testbot --test --connect localhost
Testbot runner started (pid: 57907)
MacbookAir:tmp $ mkdir -p testbotdemo/test; cd testbotdemo
MacbookAir:testbotdemo $ echo 'require "test/unit"' > test/demo_test.rb
MacbookAir:testbotdemo $ echo 'class DemoTest < Test::Unit::TestCase; def test_first; end; end' >> test/demo_test.rb
MacbookAir:testbotdemo $ testbot --test --connect localhost
No runners available. If you just started a runner, try again. It usually takes a few seconds before they're available.
MacbookAir:testbotdemo $ testbot --test --connect localhost

MacbookAir.local:/private/tmp/testbot
Loaded suite -e
Started
.
Finished in 0.000202 seconds.

1 tests, 0 assertions, 0 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment