Class: KnapsackPro::Adapters::BaseAdapter
- Inherits:
-
Object
- Object
- KnapsackPro::Adapters::BaseAdapter
show all
- Defined in:
- lib/knapsack_pro/adapters/base_adapter.rb
Constant Summary
collapse
- TEST_DIR_PATTERN =
Just example, please overwrite constant in subclass
'test/**{,/*/**}/*_test.rb'
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.bind ⇒ Object
7
8
9
10
11
|
# File 'lib/knapsack_pro/adapters/base_adapter.rb', line 7
def self.bind
adapter = new
adapter.bind
adapter
end
|
Instance Method Details
#bind ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/knapsack_pro/adapters/base_adapter.rb', line 13
def bind
if KnapsackPro::Config::Env.recording_enabled?
KnapsackPro.logger.debug('Test suite time execution recording enabled.')
bind_time_tracker
bind_save_report
end
if KnapsackPro::Config::Env.queue_recording_enabled?
KnapsackPro.logger.debug('Test suite time execution queue recording enabled.')
bind_time_tracker
bind_save_queue_report
end
end
|
#bind_save_queue_report ⇒ Object
35
36
37
|
# File 'lib/knapsack_pro/adapters/base_adapter.rb', line 35
def bind_save_queue_report
raise NotImplementedError
end
|
#bind_save_report ⇒ Object
31
32
33
|
# File 'lib/knapsack_pro/adapters/base_adapter.rb', line 31
def bind_save_report
raise NotImplementedError
end
|
#bind_time_tracker ⇒ Object
27
28
29
|
# File 'lib/knapsack_pro/adapters/base_adapter.rb', line 27
def bind_time_tracker
raise NotImplementedError
end
|