test_launcher 2.25.0 → 2.26.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/lib/test_launcher/rubymine.rb +2 -40
- data/lib/test_launcher/rubymine/parser.rb +51 -0
- data/lib/test_launcher/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969bdf386bd70aad1f3fe5c3a5fdfe4d84f5563830e76fe89df3e26aa8a17ec8
|
4
|
+
data.tar.gz: 6153978e2039b70eff76093d6fd817b90b0c49ff5fdae8b43e686696e756da45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c8a07385383100bd867642861011c51967e8127069baa83a486af9776350b09c9f4344eec3a36f7bf7fcbdb9effaa3cb1b045e58384e6a375a5dfd8d060a54
|
7
|
+
data.tar.gz: '0139155f5ac50725ca3ac6cba826c1917d9331f9c059dc8b4736668e408bf6a6a56bac67639bf6b6656abbba5d95c6aa3b037c4edc4ad6541f9b8fcc166cd86b'
|
@@ -1,41 +1,3 @@
|
|
1
|
-
require "test_launcher/
|
2
|
-
require "test_launcher/rubymine/launcher"
|
3
|
-
require "test_launcher/rubymine/request"
|
1
|
+
require "test_launcher/rubymine/parser"
|
4
2
|
|
5
|
-
|
6
|
-
#
|
7
|
-
# -r test_launcher/rubymine
|
8
|
-
#
|
9
|
-
# we need to put the currently executing script in with the args.
|
10
|
-
#
|
11
|
-
# Consider the following examples:
|
12
|
-
#
|
13
|
-
# ruby -r test_launcher/rubymine /path/to/test.rb
|
14
|
-
#
|
15
|
-
# vs
|
16
|
-
#
|
17
|
-
# ruby -r test_launcher/rubymine spring testunit /path/to/test.rb
|
18
|
-
#
|
19
|
-
# In one case, our test to run is $0 and in another case it's an ARGV.
|
20
|
-
# So we throw them in the same bucket and let the launcher figure it
|
21
|
-
# out. It doesn't matter since we will `exec` a new command anyway.
|
22
|
-
|
23
|
-
module TestLauncher
|
24
|
-
module Rubymine
|
25
|
-
def self.launch
|
26
|
-
shell = TestLauncher::Shell::Runner.new(log_path: "/dev/null")
|
27
|
-
|
28
|
-
request = Request.new(
|
29
|
-
disable_spring: ENV["DISABLE_SPRING"]
|
30
|
-
)
|
31
|
-
|
32
|
-
Launcher.new(
|
33
|
-
args: [$0].concat(ARGV),
|
34
|
-
shell: shell,
|
35
|
-
request: request
|
36
|
-
).launch
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
TestLauncher::Rubymine.launch
|
3
|
+
TestLauncher::Rubymine::Parser.launch
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require "test_launcher/shell/runner"
|
2
|
+
require "test_launcher/rubymine/launcher"
|
3
|
+
require "test_launcher/rubymine/request"
|
4
|
+
|
5
|
+
# To allow us to simply specify our run configuration as:
|
6
|
+
#
|
7
|
+
# -r test_launcher/rubymine
|
8
|
+
#
|
9
|
+
# we need to put the currently executing script in with the args.
|
10
|
+
#
|
11
|
+
# Consider the following examples:
|
12
|
+
#
|
13
|
+
# ruby -r test_launcher/rubymine /path/to/test.rb
|
14
|
+
#
|
15
|
+
# vs
|
16
|
+
#
|
17
|
+
# ruby -r test_launcher/rubymine spring testunit /path/to/test.rb
|
18
|
+
#
|
19
|
+
# In one case, our test to run is $0 and in another case it's an ARGV.
|
20
|
+
# So we throw them in the same bucket and let the launcher figure it
|
21
|
+
# out. It doesn't matter since we will `exec` a new command anyway.
|
22
|
+
|
23
|
+
module TestLauncher
|
24
|
+
module Rubymine
|
25
|
+
module Parser
|
26
|
+
def self.launch(
|
27
|
+
shell: TestLauncher::Shell::Runner.new(log_path: "/dev/null"),
|
28
|
+
argv: ARGV,
|
29
|
+
env: ENV
|
30
|
+
)
|
31
|
+
request = Request.new(
|
32
|
+
disable_spring: ENV["DISABLE_SPRING"]
|
33
|
+
)
|
34
|
+
|
35
|
+
args = [$0].concat(argv).map { |arg|
|
36
|
+
if arg.match("minitest_runner.rb") && env.key?("INTELLIJ_IDEA_RUN_CONF_TEST_FILE_PATH")
|
37
|
+
arg.sub(%r{/.+/minitest_runner.rb['"]?}, env.fetch("INTELLIJ_IDEA_RUN_CONF_TEST_FILE_PATH"))
|
38
|
+
else
|
39
|
+
arg
|
40
|
+
end
|
41
|
+
}
|
42
|
+
|
43
|
+
Launcher.new(
|
44
|
+
args: args,
|
45
|
+
shell: shell,
|
46
|
+
request: request
|
47
|
+
).launch
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Kinnecom
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/test_launcher/queries.rb
|
65
65
|
- lib/test_launcher/rubymine.rb
|
66
66
|
- lib/test_launcher/rubymine/launcher.rb
|
67
|
+
- lib/test_launcher/rubymine/parser.rb
|
67
68
|
- lib/test_launcher/rubymine/request.rb
|
68
69
|
- lib/test_launcher/search.rb
|
69
70
|
- lib/test_launcher/search/ag.rb
|
@@ -77,7 +78,7 @@ homepage: http://github.com/petekinnecom/test_launcher
|
|
77
78
|
licenses:
|
78
79
|
- MIT
|
79
80
|
metadata: {}
|
80
|
-
post_install_message:
|
81
|
+
post_install_message:
|
81
82
|
rdoc_options: []
|
82
83
|
require_paths:
|
83
84
|
- lib
|
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
version: '0'
|
94
95
|
requirements: []
|
95
96
|
rubygems_version: 3.0.3
|
96
|
-
signing_key:
|
97
|
+
signing_key:
|
97
98
|
specification_version: 4
|
98
99
|
summary: Easily run tests
|
99
100
|
test_files: []
|