koine-test_runner 0.2.4 → 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: c20c221bf08b63af4131daba570080983aa281b677273ca446c6a641015d4eaa
4
- data.tar.gz: 7ce54b0e3062d50f020ef82253fd73cd6a93c578609a60c2207b9523cf10b6a2
3
+ metadata.gz: e1b33e7ce0740b3c42ff14a0bb33203042827c24da5416b1883b4f33bd95f33a
4
+ data.tar.gz: c87889c1233cf6b24f7fcd277c39b695826d100c1e78d23d78d27a431fb6a063
5
5
  SHA512:
6
- metadata.gz: 979398dc02a77d09779566ed86c35347551a546c72b46ba90e9202102761bc549a8a48cab1b075a34e0d90f0ad23d4a83302704f5c33f5d53cfdbb0fae964c7a
7
- data.tar.gz: d1fb5229c2e75d193998066f4121d326cf3a69f9ab04a3394528750a328518995e0ac9c4cecc4ac0a8553dc9222bbbe5ec9148e4740a54e532c0a1119fa68454
6
+ metadata.gz: d88be3b2befaf29106567b06610dc009ae096683607056c0082d58a70a331bbc06f7476ce036c496297df624b112896934b2ae7547b1993015188cdb73449d53
7
+ data.tar.gz: 535c9fb07405acb4f32c7bdba629ceb6e5b4afb6a120e610d01db4419dff6c21925a937c3ed034ef7c646153287eb65d2b2c2d497bdca98d3141394be13a417f
data/.rspec CHANGED
@@ -1,2 +1 @@
1
- --format documentation
2
1
  --color
data/README.md CHANGED
@@ -106,6 +106,12 @@ Or
106
106
  bundle exec run_test --last
107
107
  ```
108
108
 
109
+ ## Checking the log
110
+
111
+ ```
112
+ cat /tmp/test_runner.log
113
+ ```
114
+
109
115
  ## Development
110
116
 
111
117
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/exe/run_test CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
- lib = File.expand_path('lib', __dir__)
2
+ lib = File.expand_path('../lib', __dir__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
+ require 'fileutils'
5
6
  require 'koine/test_runner'
6
7
  require 'yaml'
7
8
 
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'logger'
2
3
 
3
4
  require 'koine/test_runner/version'
4
5
  require 'koine/test_runner/command_executer'
@@ -2,7 +2,11 @@ module Koine
2
2
  class TestRunner
3
3
  class CommandExecuter
4
4
  def execute(command)
5
+ start = Time.now
5
6
  system(command.to_s)
7
+ finish = Time.now
8
+ elapsed = finish - start
9
+ logger.info("#{command} => elapsed time: #{elapsed.round(2)}")
6
10
  $?.exitstatus
7
11
  end
8
12
 
@@ -15,6 +19,10 @@ module Koine
15
19
  puts command
16
20
  exit(execute(command))
17
21
  end
22
+
23
+ def logger
24
+ @logger ||= Logger.new('/tmp/test_runner.log')
25
+ end
18
26
  end
19
27
  end
20
28
  end
@@ -1,3 +1,3 @@
1
1
  class TestRunner
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koine-test_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-29 00:00:00.000000000 Z
11
+ date: 2021-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coveralls