derail_specs 0.3.0 → 0.4.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/.rubocop.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -0
- data/bin/setup +3 -0
- data/example/Gemfile.lock +1 -1
- data/lib/derail_specs/boot.rb +10 -1
- data/lib/derail_specs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ca53c48f235d3cd9caf87c214bf4683b60cdf8e6211e3c65fa62a9dcdf5e45f
|
|
4
|
+
data.tar.gz: 00ced973776c36fb38a419603ca5c00971f5f61f883e92b8a4e20add8c1b0d72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87242fbd1dab956f9eb10d7aed765d5d9f406a04fbb4008790d0623b833de7f59a8a3973659fd411ca3fa98cc38c09f12ea686413af5c70ce890c20ee596cedd
|
|
7
|
+
data.tar.gz: c116887a284320c09f4e01503f1e48d171ee35aac750eeb33b03711719cf5a6d0ca50ec6650bda40541f1f6428c9709a9fd46835ea276731e26b5845bad614f2
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -38,6 +38,12 @@ DerailSpecs.configure do |config|
|
|
|
38
38
|
end
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
+
Alternatively, if you don't set a `config.command`, the server will boot in
|
|
42
|
+
*infinite* mode and will not stop until receiving an INT signal (IE Ctrl+c).
|
|
43
|
+
This is good for when your test command isn't available in a rails context,
|
|
44
|
+
like when you are running rails in docker, but have a test application running
|
|
45
|
+
on the host machine.
|
|
46
|
+
|
|
41
47
|
## Usage
|
|
42
48
|
|
|
43
49
|
To run tests, run
|
data/bin/setup
CHANGED
data/example/Gemfile.lock
CHANGED
data/lib/derail_specs/boot.rb
CHANGED
|
@@ -10,11 +10,20 @@ module DerailSpecs
|
|
|
10
10
|
|
|
11
11
|
puts "Starting Tests…"
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
if command.present?
|
|
14
|
+
puts "Run: #{command}"
|
|
15
|
+
system command
|
|
16
|
+
else
|
|
17
|
+
loop { sleep 60 }
|
|
18
|
+
end
|
|
14
19
|
end
|
|
15
20
|
|
|
16
21
|
private
|
|
17
22
|
|
|
23
|
+
def command
|
|
24
|
+
DerailSpecs.configuration.command
|
|
25
|
+
end
|
|
26
|
+
|
|
18
27
|
def set_exit_hooks!
|
|
19
28
|
at_exit do
|
|
20
29
|
Transaction.rollback
|
data/lib/derail_specs/version.rb
CHANGED