liri 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/dummy-app/spec/dummy/dummy_spec.rb +11 -0
- data/lib/common/unit_test/rspec.rb +2 -15
- data/lib/liri.rb +1 -1
- data/lib/manager/manager.rb +3 -3
- data/template/liri-config.yml +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08834308c81302f447468f042b36e8a4afca8fb69cf3b68b0e7abbc93e437588'
|
4
|
+
data.tar.gz: 2bf7d19f01d159ac4824032b746c0e9ea5c630beae920f9facb917578a626f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8005779860f0fa0cb1023db745cb8cb8ee5926382484997c1ca5b5ee7c34fbd7edeecfa4bc8583bece964f249dfc3b4cd18bda2c13989ad91df32f97030f064
|
7
|
+
data.tar.gz: 58705bc1314667e09b7dbc9701505ac24256d0776360b21c8db551274e44a71245b6d66aabb12ec864ef51b70ebd6309540918f4b45d47bbcc6610bc36248387
|
data/Gemfile.lock
CHANGED
@@ -15,21 +15,8 @@ module Liri
|
|
15
15
|
tests_count = 1
|
16
16
|
tests_hash = {}
|
17
17
|
test_files.each do |test_file|
|
18
|
-
|
19
|
-
|
20
|
-
file.each_with_index do |line, index|
|
21
|
-
next if line_inside_comment_block(line)
|
22
|
-
|
23
|
-
if line.strip.start_with?('it')
|
24
|
-
absolute_file_path = file.to_path
|
25
|
-
relative_file_path = absolute_file_path.sub(@source_code_folder_path + '/', '')
|
26
|
-
|
27
|
-
test_line = relative_file_path + ":#{index + 1}"
|
28
|
-
tests_hash[tests_count] = test_line
|
29
|
-
tests_count += 1
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
18
|
+
tests_hash[tests_count] = test_file.sub(@source_code_folder_path + '/', '')
|
19
|
+
tests_count += 1
|
33
20
|
end
|
34
21
|
tests_hash
|
35
22
|
end
|
data/lib/liri.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Este modulo contiene datos del programa que son reutilizados en otras partes de la aplicacion
|
4
4
|
module Liri
|
5
5
|
NAME = 'liri' # El gemspec requiere que el nombre este en minusculas
|
6
|
-
VERSION = '0.
|
6
|
+
VERSION = '0.3.0'
|
7
7
|
|
8
8
|
class << self
|
9
9
|
def set_setup(destination_folder_path)
|
data/lib/manager/manager.rb
CHANGED
@@ -41,8 +41,8 @@ module Liri
|
|
41
41
|
Liri.kill(threads)
|
42
42
|
end
|
43
43
|
|
44
|
-
def
|
45
|
-
Liri.setup.
|
44
|
+
def test_files_by_runner
|
45
|
+
Liri.setup.test_files_by_runner
|
46
46
|
end
|
47
47
|
|
48
48
|
private
|
@@ -263,7 +263,7 @@ module Liri
|
|
263
263
|
return nil if @all_tests.empty?
|
264
264
|
|
265
265
|
@tests_batch_number += 1 # Se numera cada lote
|
266
|
-
samples = @all_tests.sample!(Manager.
|
266
|
+
samples = @all_tests.sample!(Manager.test_files_by_runner) # Se obtiene algunos tests
|
267
267
|
samples_keys = samples.keys # Se obtiene la clave asignada a los tests
|
268
268
|
@all_tests_processing_count += samples_keys.size
|
269
269
|
|
data/template/liri-config.yml
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Obs.: Puede que no sea útil para el usuario poder cambiar este nombre
|
4
4
|
compressed_file_name: compressed_source_code
|
5
5
|
# Configuración de la cantidad de tests a ejecutar por tandas
|
6
|
-
|
6
|
+
test_files_by_runner: 10
|
7
7
|
print_failures: false
|
8
8
|
udp_request_delay: 10
|
9
9
|
log:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Fernández
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- dummy-app/lib/dummy/app.rb
|
179
179
|
- dummy-app/lib/dummy/app/version.rb
|
180
180
|
- dummy-app/spec/dummy/app_spec.rb
|
181
|
+
- dummy-app/spec/dummy/dummy_spec.rb
|
181
182
|
- dummy-app/spec/spec_helper.rb
|
182
183
|
- exe/liri
|
183
184
|
- lib/agent/agent.rb
|