|
|
@@ -7,9 +7,23 @@ class TestCLI < Thor
|
|
|
|
|
|
default_command :all
|
|
|
|
|
|
+ def initialize(*args)
|
|
|
+ $LOAD_PATH.unshift 'test'
|
|
|
+ super
|
|
|
+ end
|
|
|
+
|
|
|
desc 'all', 'Run all tests'
|
|
|
def all
|
|
|
- $LOAD_PATH.unshift 'test'
|
|
|
Dir['test/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
|
|
|
end
|
|
|
+
|
|
|
+ desc 'docs', 'Run "Docs" tests'
|
|
|
+ def docs
|
|
|
+ Dir['test/lib/docs/**/*_test.rb'].map(&File.method(:expand_path)).each(&method(:require))
|
|
|
+ end
|
|
|
+
|
|
|
+ desc 'app', 'Run "App" tests'
|
|
|
+ def app
|
|
|
+ require 'app_test'
|
|
|
+ end
|
|
|
end
|