Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you use Ruby 1.9 and want to use spork and autotest together with Test::Unit (actually MiniTest) try this:</p> <p>Gemfile:</p> <pre><code>group :test do # Newer version of test::unit: gem 'minitest' # spork preloads a rails instance which is forked every time the tests are # run, removing test startup time. gem 'spork' # Run 'spork minitest' to start drb server (test server). Use 'testdrb' to # run individual tests via spork. gem 'spork-minitest' # Run 'bundle exec autotest' to rerun relevant tests whenever a file/test is # changed. '.autotest' makes sure the tests are run via test server (spork). gem 'autotest-standalone' # -pure gives us autotest without ZenTest gem. gem 'autotest-rails-pure' end </code></pre> <p><a href="https://github.com/semaperepelitsa/spork-minitest#usage" rel="nofollow">.autotest</a>:</p> <pre><code>class Autotest # run tests over drb server (spork) def make_test_cmd files_to_test if files_to_test.empty? "" # no tests to run else "testdrb #{files_to_test.keys.join(' ')}" end end end </code></pre> <p>(Note: Instructions says <code>bin/testdrb</code>, but I changed it to <code>testdrb</code> to make it work for me.)</p> <p>In a terminal:</p> <pre><code>spork minitest --bootstrap </code></pre> <p>Edit <code>test/test_helper.rb</code>and follow instructions.</p> <p>After the above setup is done once, you can start the test server:</p> <pre><code>spork minitest </code></pre> <p>Finally start autotest in another terminal:</p> <pre><code>bundle exec autotest </code></pre> <p>And (hopefully) enjoy really fast autotesting with MiniTest.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload