mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
allow every test to be run with just ruby test/xxx_test.rb
This commit is contained in:
parent
01dc468a22
commit
57a06d00d6
20 changed files with 19 additions and 20 deletions
1
Rakefile
1
Rakefile
|
@ -1,7 +1,6 @@
|
|||
require 'bundler/gem_tasks'
|
||||
require 'rake/testtask'
|
||||
Rake::TestTask.new(:test) do |test|
|
||||
test.libs << 'test'
|
||||
#SO MUCH NOISE
|
||||
#test.warning = true
|
||||
test.pattern = 'test/**/test_*.rb'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
|
||||
class TestApi < Sidekiq::Test
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/cli'
|
||||
require 'tempfile'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/client'
|
||||
require 'sidekiq/worker'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/exception_handler'
|
||||
require 'stringio'
|
||||
require 'logger'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq'
|
||||
require 'active_record'
|
||||
require 'action_mailer'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/fetch'
|
||||
|
||||
class TestFetcher < Sidekiq::Test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/manager'
|
||||
|
||||
class TestManager < Sidekiq::Test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/middleware/chain'
|
||||
require 'sidekiq/processor'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/processor'
|
||||
|
||||
class TestProcessor < Sidekiq::Test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/redis_connection'
|
||||
|
||||
class TestRedisConnection < Sidekiq::Test
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/scheduled'
|
||||
require 'sidekiq/middleware/server/retry_jobs'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/scheduled'
|
||||
|
||||
class TestScheduled < Sidekiq::Test
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq/scheduled'
|
||||
|
||||
class TestScheduling < Sidekiq::Test
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# encoding: utf-8
|
||||
require 'helper'
|
||||
require_relative 'helper'
|
||||
|
||||
class TestSidekiq < Sidekiq::Test
|
||||
describe 'json processing' do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq'
|
||||
require 'sidekiq/worker'
|
||||
require 'active_record'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq'
|
||||
require 'sidekiq/worker'
|
||||
require 'active_record'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq'
|
||||
require 'sidekiq/worker'
|
||||
require 'active_record'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'sidekiq'
|
||||
require 'sidekiq/web'
|
||||
require 'rack/test'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'helper'
|
||||
require_relative 'helper'
|
||||
require 'rails/generators/test_case'
|
||||
require 'generators/sidekiq/worker_generator'
|
||||
|
||||
|
|
Loading…
Reference in a new issue