liri 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cc6b031af97cb8da75288ab31cc6d6704c64d91578174817b97ec6520221c25
4
- data.tar.gz: f15c98a96dd13dd2f1163f87b1bb46ef72a9edfa08e22a422fc2cb3f77517dd8
3
+ metadata.gz: '08834308c81302f447468f042b36e8a4afca8fb69cf3b68b0e7abbc93e437588'
4
+ data.tar.gz: 2bf7d19f01d159ac4824032b746c0e9ea5c630beae920f9facb917578a626f3e
5
5
  SHA512:
6
- metadata.gz: f15a411d849ae87ec9c8db231738d158cd101ad30bc31a5ee6940340987c92efea8e6d178b8d84d8b4cb9a35f2eac9e6c1deb3512d7c804ba3b5e68b6ba53027
7
- data.tar.gz: 290e1006cac672429979f5a72b15ad1b7f2b643b88a91271527ff74c3b9277ae1c920d284f6acd294de1954ca45cc4174e45f67c3a92d7bbb31263881693442d
6
+ metadata.gz: c8005779860f0fa0cb1023db745cb8cb8ee5926382484997c1ca5b5ee7c34fbd7edeecfa4bc8583bece964f249dfc3b4cd18bda2c13989ad91df32f97030f064
7
+ data.tar.gz: 58705bc1314667e09b7dbc9701505ac24256d0776360b21c8db551274e44a71245b6d66aabb12ec864ef51b70ebd6309540918f4b45d47bbcc6610bc36248387
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- liri (0.2.1)
4
+ liri (0.3.0)
5
5
  commander (~> 4)
6
6
  highline (~> 2)
7
7
  i18n (~> 1)
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe Dummy::App do
4
+ it "has a version number" do
5
+ expect(Dummy::App::VERSION).not_to be nil
6
+ end
7
+
8
+ it "does something useful" do
9
+ expect(false).to eq(true)
10
+ end
11
+ end
@@ -15,21 +15,8 @@ module Liri
15
15
  tests_count = 1
16
16
  tests_hash = {}
17
17
  test_files.each do |test_file|
18
- File.open(test_file) do |file|
19
- @inside_comment = false
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.2.1'
6
+ VERSION = '0.3.0'
7
7
 
8
8
  class << self
9
9
  def set_setup(destination_folder_path)
@@ -41,8 +41,8 @@ module Liri
41
41
  Liri.kill(threads)
42
42
  end
43
43
 
44
- def test_samples_by_runner
45
- Liri.setup.test_samples_by_runner
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.test_samples_by_runner) # Se obtiene algunos tests
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
 
@@ -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
- test_samples_by_runner: 1000
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.2.1
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