koine-test_runner 0.2.1 → 0.4.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/.travis.yml +4 -1
- data/README.md +7 -1
- data/bin/console +1 -1
- data/exe/run_test +2 -2
- data/lib/koine/test_runner.rb +3 -0
- data/lib/koine/test_runner/builder.rb +1 -1
- data/lib/koine/test_runner/command_executer.rb +9 -0
- data/lib/koine/test_runner/version.rb +1 -1
- data/tests/integration_tests.sh +2 -1
- metadata +6 -7
- data/integration_test.sh +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6184f013e773c64299e64d21e60a1b03a08ed4b59b8bc1175787f16008c4e2e5
|
4
|
+
data.tar.gz: c3a6841d04e74bb2d367ab3e3519659c3a4cd736c1d892573427044861214154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 647a7ff215fb6df3949f26b3965a0667fdd60c5d4dda8f3ca8fcdfcf2699baf6d66e495cf4200afc6c61514a38d064028e1170385d09e1bd77d17bd63e269ee6
|
7
|
+
data.tar.gz: 4eab14efbb0467464b00d317113f83a36904809a8f98773c4f6e0572d8195f7503f34053330134337f9d9525934e78f7447b296dddda61ddc11f96e6648b557a
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Easy test runner customization
|
4
4
|
|
5
|
-
[![Build Status](https://travis-ci.
|
5
|
+
[![Build Status](https://travis-ci.com/mjacobus/test_runner.svg?branch=master)](https://travis-ci.com/mjacobus/test_runner)
|
6
6
|
[![Coverage Status](https://coveralls.io/repos/github/mjacobus/test_runner/badge.svg?branch=master)](https://coveralls.io/github/mjacobus/test_runner?branch=master)
|
7
7
|
[![Code Climate](https://codeclimate.com/github/mjacobus/test_runner/badges/gpa.svg)](https://codeclimate.com/github/mjacobus/test_runner)
|
8
8
|
[![Issue Count](https://codeclimate.com/github/mjacobus/test_runner/badges/issue_count.svg)](https://codeclimate.com/github/mjacobus/test_runner)
|
@@ -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/bin/console
CHANGED
data/exe/run_test
CHANGED
data/lib/koine/test_runner.rb
CHANGED
@@ -2,7 +2,12 @@ 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)}")
|
10
|
+
puts "\nTook #{elapsed.round(2)} seconds"
|
6
11
|
$?.exitstatus
|
7
12
|
end
|
8
13
|
|
@@ -15,6 +20,10 @@ module Koine
|
|
15
20
|
puts command
|
16
21
|
exit(execute(command))
|
17
22
|
end
|
23
|
+
|
24
|
+
def logger
|
25
|
+
@logger ||= Logger.new('/tmp/test_runner.log')
|
26
|
+
end
|
18
27
|
end
|
19
28
|
end
|
20
29
|
end
|
data/tests/integration_tests.sh
CHANGED
@@ -5,7 +5,8 @@ set -v
|
|
5
5
|
|
6
6
|
export SKIP_COVERAGE='true'
|
7
7
|
|
8
|
-
|
8
|
+
bundle exec rake install
|
9
|
+
# ./exe/run_test spec/fixtures/FixturePhpUnitTest.php --line=30
|
9
10
|
./exe/run_test spec/koine/test_runner_spec.rb
|
10
11
|
./exe/run_test spec/koine/test_runner_spec.rb --line=9
|
11
12
|
./exe/run_test spec/koine/test_runner_spec.rb --last
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Jacobus
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|
@@ -115,7 +115,6 @@ files:
|
|
115
115
|
- bin/setup
|
116
116
|
- config/default.yml
|
117
117
|
- exe/run_test
|
118
|
-
- integration_test.sh
|
119
118
|
- koine-test_runner.gemspec
|
120
119
|
- lib/koine/test_runner.rb
|
121
120
|
- lib/koine/test_runner/adapters.rb
|
@@ -137,7 +136,7 @@ licenses:
|
|
137
136
|
- MIT
|
138
137
|
metadata:
|
139
138
|
allowed_push_host: https://rubygems.org
|
140
|
-
post_install_message:
|
139
|
+
post_install_message:
|
141
140
|
rdoc_options: []
|
142
141
|
require_paths:
|
143
142
|
- lib
|
@@ -152,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
151
|
- !ruby/object:Gem::Version
|
153
152
|
version: '0'
|
154
153
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
156
|
-
signing_key:
|
154
|
+
rubygems_version: 3.2.3
|
155
|
+
signing_key:
|
157
156
|
specification_version: 4
|
158
157
|
summary: Easy test runner
|
159
158
|
test_files: []
|
data/integration_test.sh
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
set -v
|
5
|
-
|
6
|
-
./exe/run_test spec/fixtures/FixturePhpUnitTest.php --line=30
|
7
|
-
./exe/run_test spec/koine/test_runner_spec.rb
|
8
|
-
./exe/run_test spec/koine/test_runner_spec.rb --line=9
|
9
|
-
./exe/run_test spec/koine/test_runner_spec.rb --all
|