Skip to content

Commit

Permalink
added schedule methjod and updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Reeder committed Jun 18, 2011
1 parent 9c9b694 commit e75e53f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.markdown
@@ -1 +1,8 @@
A test suite that uses SimpleWorker to run it.

## Getting Started

Setup config.yml.

Run `enqueue_tests.rb` to queue it up to SimpleWorker.

9 changes: 6 additions & 3 deletions enqueue_tests.rb
Expand Up @@ -19,6 +19,9 @@
suite_worker.add('basic_tests', 'BasicTests', @config)
suite_worker.add('db_tests', 'DbTests', @config)
suite_worker.setup
suite_worker.queue
status = suite_worker.wait_until_complete
p status

suite_worker.schedule(:start_at=>Time.now, :run_every=>3600)

#suite_worker.queue
#status = suite_worker.wait_until_complete
#p status

0 comments on commit e75e53f

Please sign in to comment.