test_launcher 2.31.0 → 2.32.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_launcher/cli/input_parser.rb +1 -1
- data/lib/test_launcher/frameworks/ex_unit.rb +2 -3
- data/lib/test_launcher/frameworks/generic.rb +1 -1
- data/lib/test_launcher/frameworks/minitest.rb +2 -3
- data/lib/test_launcher/frameworks/mochajs.rb +4 -2
- data/lib/test_launcher/frameworks/rspec.rb +2 -2
- data/lib/test_launcher/search/git.rb +6 -2
- data/lib/test_launcher/shell/runner.rb +4 -0
- data/lib/test_launcher/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91488cc5500562a2a62d22b70b3a3272d9b4b88522aa3dc693e5ad96d5e7225f
|
4
|
+
data.tar.gz: 13e9df04fd4bf9971eaf23737b0df6ca6b0760ca255ef111fe60284bd22cf206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10aa7cc93c31ae79a3fa5675d716f8319b272ad7d288e7d60d2540f0efd26d01681c236c7969908692ce871e74386da0d0211e5a700ead64c101076dd4da9c77
|
7
|
+
data.tar.gz: 53839794e08589aaa78874e3fb3cf757c70aad4a272e0ffb383020540651091d29a645c679787f95da85f0966adbc45344d051ce9209199d9cfd6f96c6b7c6e7
|
@@ -4,9 +4,8 @@ require "test_launcher/base_error"
|
|
4
4
|
module TestLauncher
|
5
5
|
module Frameworks
|
6
6
|
module ExUnit
|
7
|
-
def self.active?
|
8
|
-
|
9
|
-
`git ls-files '*.exs'`.split("\n").any?
|
7
|
+
def self.active?(searcher)
|
8
|
+
searcher.ls_files("*.exs").any?
|
10
9
|
end
|
11
10
|
|
12
11
|
def self.test_case(*a, **o)
|
@@ -5,9 +5,8 @@ require "test_launcher/base_error"
|
|
5
5
|
module TestLauncher
|
6
6
|
module Frameworks
|
7
7
|
module Minitest
|
8
|
-
def self.active?
|
9
|
-
|
10
|
-
`git ls-files '*_test.rb'`.split("\n").any?
|
8
|
+
def self.active?(searcher)
|
9
|
+
searcher.ls_files("*_test.rb").any?
|
11
10
|
end
|
12
11
|
|
13
12
|
def self.test_case(*a, **o)
|
@@ -5,8 +5,10 @@ module TestLauncher
|
|
5
5
|
module Frameworks
|
6
6
|
module Mochajs
|
7
7
|
|
8
|
-
def self.active?
|
9
|
-
|
8
|
+
def self.active?(searcher)
|
9
|
+
# just disable this cause it doesn't really work and it might
|
10
|
+
# help speed things up.
|
11
|
+
false
|
10
12
|
end
|
11
13
|
|
12
14
|
def self.test_case(*a, **o)
|
@@ -20,8 +20,8 @@ module TestLauncher
|
|
20
20
|
.run("git status --porcelain=v2")
|
21
21
|
.map { |l|
|
22
22
|
type, path = l.split(" ")
|
23
|
-
|
24
|
-
}
|
23
|
+
matcher = ".*#{pattern}.*".gsub("**", "*")
|
24
|
+
path if type == "?" && path.match(%r{#{matcher}}) }
|
25
25
|
.compact
|
26
26
|
end
|
27
27
|
|
@@ -45,6 +45,10 @@ module TestLauncher
|
|
45
45
|
Dir.chdir(root_path) # MOVE ME!
|
46
46
|
end
|
47
47
|
|
48
|
+
def ls_files(pattern)
|
49
|
+
interface.ls_files(pattern)
|
50
|
+
end
|
51
|
+
|
48
52
|
def find_files(pattern)
|
49
53
|
relative_pattern = strip_system_path(pattern)
|
50
54
|
|
@@ -55,6 +55,10 @@ module TestLauncher
|
|
55
55
|
%x{echo #{Shellwords.escape(msg)} >> #{log_path}}
|
56
56
|
end
|
57
57
|
|
58
|
+
def shell_out!(...)
|
59
|
+
shell_out(...)
|
60
|
+
end
|
61
|
+
|
58
62
|
def shell_out(command)
|
59
63
|
logged_cmd = "set -o pipefail && #{command} 2>> #{log_path} | tee -a #{log_path}"
|
60
64
|
%x{bash -c #{Shellwords.escape(logged_cmd)}}.chomp
|
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.32.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Kinnecom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
96
|
+
rubygems_version: 3.4.10
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Easily run tests
|