1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

14 commits

Author SHA1 Message Date
Mike Perham
53e6b9e2df Test suite overhaul
Remove Redis mocking.  Minimize Redis flushing where possible.
2015-09-23 10:56:37 -07:00
Ryan Schlesinger
a71e1bbe18 Add middleware stack to Testing 2015-09-04 15:35:33 -07:00
grosser
57a06d00d6 allow every test to be run with just ruby test/xxx_test.rb 2014-12-30 12:54:58 -08:00
Mike Perham
b0107b5d99 Add JID for inline testing, fixes #1454 2014-01-30 09:22:07 -08:00
Ryan Schlesinger
fd0232eb15 Add dynamic testing
In addition to requiring 'sidekiq/testing' and 'sidekiq/testing/inline',
a user can also call the following methods to control the test harness:

Sidekiq::Testing.fake!
Sidekiq::Testing.inline!
Sidekiq::Testing.disable!

Each of the above methods also accepts a block to execute within that
context before reverting to the state present before method invocation.

To query the current state, use the following methods:

Sidekiq::Testing.enabled?
Sidekiq::Testing.disabled?
Sidekiq::Testing.fake?
Sidekiq::Testing.inline?

Closes #1053
2013-09-23 12:07:23 -07:00
Mike Perham
babfdc96c5 Backport test suite to Minitest 4 so we can test against Rails 4. 2013-09-22 14:38:33 -07:00
Mike Perham
4679c95f49 Upgrade to Minitest 5 2013-05-12 14:25:30 -07:00
Mike Perham
9360c01aad client api refactoring 2013-03-24 17:42:43 -07:00
Mike Ragalie
dee4e38961 Run .push_bulk calls inline in inline testing mode 2012-11-19 17:34:46 -08:00
Mike Perham
576eb6fa56 Inline testing now runs through client middleware before executing, fixes #465 2012-10-25 20:55:32 -07:00
Mike Perham
b3757fdfa6 Rejigger inline testing to handle enqueue/enqueue_to 2012-09-07 08:59:04 -07:00
Peter Ohler
2bcae35267 added support for time as a Numeric 2012-08-20 10:19:59 +09:00
Petteri Räty
1eb0c80ca0 Inline testing should pass arguments through json
If you are passing arguments like time objects that serialize to strings
but don't deserialize back automatically, inline testing was passing the
objects through raw meaning different behavior in tests vs. production.
Now the inline wrapper does a round trip through json.
2012-06-01 16:37:50 +03:00
Pan Thomakos
c4e6fae37c Added inline testing functionality.
Allows sidekiq jobs to run inline in test mode without having to modify
the production code. In other words production code can still call the
`perform_async` method and tests can still verify that functionality is
run inline.
2012-05-02 11:04:29 -07:00