Module: Liri
- Defined in:
- lib/liri.rb,
lib/task.rb,
lib/common/log.rb,
lib/agent/agent.rb,
lib/agent/runner.rb,
lib/common/setup.rb,
lib/common/duration.rb,
lib/common/hardware.rb,
lib/manager/manager.rb,
lib/common/progressbar.rb,
lib/common/source_code.rb,
lib/manager/credential.rb,
lib/common/benchmarking.rb,
lib/common/manager_data.rb,
lib/common/tests_result.rb,
lib/common/compressor/zip.rb,
lib/common/tty_progressbar.rb,
lib/common/unit_test/rspec.rb,
lib/common/text_time_parser.rb,
lib/common/unit_test/rspec_result_parser.rb
Overview
rspec_result_parser.rb
Clase RspecResultParser
Defined Under Namespace
Modules: Common, Task
Classes: Agent, FileNotFoundError, InxiCommandNotFoundError, Manager
Constant Summary
collapse
- NAME =
El gemspec requiere que el nombre este en minusculas
'liri'
- VERSION =
'0.4.1'
Class Method Summary
collapse
Class Method Details
.clean_folder_content(folder_path) ⇒ Object
35
36
37
|
# File 'lib/liri.rb', line 35
def clean_folder_content(folder_path)
FileUtils.rm_rf(Dir.glob(folder_path + '/*')) if Dir.exist?(folder_path)
end
|
.clear_setup ⇒ Object
26
27
28
29
30
31
32
33
|
# File 'lib/liri.rb', line 26
def clear_setup
if @setup
@setup = nil
true
else
false
end
end
|
.compression_class ⇒ Object
65
66
67
|
# File 'lib/liri.rb', line 65
def compression_class
"Liri::Common::Compressor::#{setup.general.library.compression}"
end
|
.current_folder_ruby_and_gemset ⇒ Object
81
82
83
|
# File 'lib/liri.rb', line 81
def current_folder_ruby_and_gemset
"#{File.read('.ruby-version').strip}@#{File.read('.ruby-gemset').strip}"
end
|
.current_host_ip_address ⇒ Object
60
61
62
63
|
# File 'lib/liri.rb', line 60
def current_host_ip_address
addr = Socket.ip_address_list.select(&:ipv4?).detect{|addr| addr.ip_address != '127.0.0.1'}
addr.ip_address
end
|
.delete_setup ⇒ Object
43
44
45
|
# File 'lib/liri.rb', line 43
def delete_setup
@setup_manager ? @setup_manager.delete_setup_folder : false
end
|
.ignored_folders_in_compress ⇒ Object
85
86
87
|
# File 'lib/liri.rb', line 85
def ignored_folders_in_compress
setup.general.ignored_folders_in_compress
end
|
.init_exit(stop, threads) ⇒ Object
47
48
49
50
51
52
53
54
|
# File 'lib/liri.rb', line 47
def init_exit(stop, threads)
threads = threads.compact
kill(threads) if stop
threads.each{|thread| thread.join}
end
|
.kill(threads) ⇒ Object
56
57
58
|
# File 'lib/liri.rb', line 56
def kill(threads)
threads.each{ |thread| Thread.kill(thread) }
end
|
.logger ⇒ Object
18
19
20
|
# File 'lib/liri.rb', line 18
def logger
@logger ||= load_logger
end
|
.reload_setup ⇒ Object
39
40
41
|
# File 'lib/liri.rb', line 39
def reload_setup
@setup = (@setup_manager ? @setup_manager.load : nil)
end
|
.set_logger(folder_path, file_name) ⇒ Object
22
23
24
|
# File 'lib/liri.rb', line 22
def set_logger(folder_path, file_name)
@logger = load_logger(folder_path, file_name)
end
|
.set_setup(destination_folder_path, program, manager_tests_results_folder_time: nil) ⇒ Object
9
10
11
|
# File 'lib/liri.rb', line 9
def set_setup(destination_folder_path, program, manager_tests_results_folder_time: nil)
load_setup_manager(destination_folder_path, program, manager_tests_results_folder_time: manager_tests_results_folder_time)
end
|
.setup ⇒ Object
Carga las configuraciones en memoria desde un archivo de configuracion
14
15
16
|
# File 'lib/liri.rb', line 14
def setup
@setup
end
|
.tcp_port ⇒ Object
77
78
79
|
# File 'lib/liri.rb', line 77
def tcp_port
setup.general.ports.tcp
end
|
.times_round ⇒ Object
89
90
91
|
# File 'lib/liri.rb', line 89
def times_round
setup.general.times_round
end
|
.times_round_type ⇒ Object
93
94
95
|
# File 'lib/liri.rb', line 93
def times_round_type
setup.general.times_round_type.to_sym
end
|
.udp_port ⇒ Object
73
74
75
|
# File 'lib/liri.rb', line 73
def udp_port
setup.general.ports.udp
end
|
.unit_test_class ⇒ Object
69
70
71
|
# File 'lib/liri.rb', line 69
def unit_test_class
"Liri::Common::UnitTest::#{setup.general.library.unit_test}"
end
|