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 +4 -4
- data/.rspec +0 -1
- data/README.md +6 -0
- data/exe/run_test +2 -1
- data/lib/koine/test_runner.rb +1 -0
- data/lib/koine/test_runner/command_executer.rb +8 -0
- data/lib/koine/test_runner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b33e7ce0740b3c42ff14a0bb33203042827c24da5416b1883b4f33bd95f33a
|
4
|
+
data.tar.gz: c87889c1233cf6b24f7fcd277c39b695826d100c1e78d23d78d27a431fb6a063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88be3b2befaf29106567b06610dc009ae096683607056c0082d58a70a331bbc06f7476ce036c496297df624b112896934b2ae7547b1993015188cdb73449d53
|
7
|
+
data.tar.gz: 535c9fb07405acb4f32c7bdba629ceb6e5b4afb6a120e610d01db4419dff6c21925a937c3ed034ef7c646153287eb65d2b2c2d497bdca98d3141394be13a417f
|
data/.rspec
CHANGED
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
data/lib/koine/test_runner.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2021-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|