Sha256: 4a98517afd778cadd5ecb26ff281600f6414ce901bd0d844d80ed3801ccbda4c

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

require 'test_notifier'

Autotest.add_hook :ran_command do |at|
  begin
    content = at.results.to_s
  
    TestNotifier.rspec?(content) ? 
      TestNotifier.notification_for_rspec(content) : 
      TestNotifier.notification_for_test_unit(content)
  rescue
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fnando-test_notifier-0.0.10 lib/test_notifier/autotest.rb
fnando-test_notifier-0.1.0 lib/test_notifier/autotest.rb
test_notifier-0.1.4 lib/test_notifier/autotest.rb
test_notifier-0.1.3 lib/test_notifier/autotest.rb
test_notifier-0.1.2 lib/test_notifier/autotest.rb
test_notifier-0.1.1 lib/test_notifier/autotest.rb
test_notifier-0.1.0 lib/test_notifier/autotest.rb