Module: ParallelTests::Extensions
- Included in:
- ParallelTests
- Defined in:
- lib/parallel_tests/extensions.rb,
lib/parallel_tests/extensions/version.rb
Constant Summary collapse
- VERSION =
'0.0.1'
Instance Method Summary collapse
- #after_tests(&block) ⇒ Object
-
#is_running? ⇒ Boolean
Whether or not parallel test is running.
Instance Method Details
#after_tests(&block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/parallel_tests/extensions.rb', line 12 def after_tests(&block) if is_running? @afters ||= [] @afters << block install_after_hook unless @after_hook_installed end end |
#is_running? ⇒ Boolean
Returns whether or not parallel test is running.
8 9 10 |
# File 'lib/parallel_tests/extensions.rb', line 8 def is_running? ENV.has_key?('TEST_ENV_NUMBER') end |