runyoufools 0.1.2 → 0.1.3
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/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/bin/runyoufools +6 -2
- data/lib/runyoufools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2e2f5859c9b626a84b93c618bf24ba9366845cb
|
|
4
|
+
data.tar.gz: c91bb9e7818c94a3796de9d49fe012b8deb2b116
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdf88eff06a9599e3161a034a4a44e0ab9177c95f6bd265adc50022e97357fdd79d006985d1d576009e7f28c9c9f58461287036c02b7784dea77b9b186391bd3
|
|
7
|
+
data.tar.gz: 661b0b03ac2434c74e793d420f7cf49aac779ebcebd752018d16f93d141a355a6785cfa5c5066f860291163c19b54b94f3b03056c7391bab2d88c7e958de471f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -42,7 +42,8 @@ So, to run all tests in the `test/system` directory:
|
|
|
42
42
|
|
|
43
43
|
Note that if you do not include the final `/`, RunYouFools might try to run a file called `test/system.log`.
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The pattern is *MANDATORY*.
|
|
46
|
+
|
|
46
47
|
|
|
47
48
|
# What if I don't want my test files to be executable?
|
|
48
49
|
|
data/bin/runyoufools
CHANGED
|
@@ -24,13 +24,13 @@ end
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
options = OpenStruct.new
|
|
27
|
-
options.pattern =
|
|
27
|
+
options.pattern = nil
|
|
28
28
|
options.command = nil
|
|
29
29
|
options.retries = 1
|
|
30
30
|
|
|
31
31
|
parser = OptionParser.new
|
|
32
32
|
parser.banner = "RunYouFools! - a test runner"
|
|
33
|
-
parser.on "--pattern=REGEX", "-p", "Pattern (regex) for looking for test files.
|
|
33
|
+
parser.on "--pattern=REGEX", "-p", "Pattern (regex) for looking for test files." do |pattern|
|
|
34
34
|
options.pattern = Regexp.new pattern
|
|
35
35
|
end
|
|
36
36
|
parser.on "--command=COMMAND", "-c", "command to preceed test file if needed, e.g. if set to 'python', RunYouFools! will use 'python test.py' instead of just 'test.py'" do |command|
|
|
@@ -41,4 +41,8 @@ parser.on "--retries=NUMBER", '-r', 'number of retries (default: 1)' do |retries
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
parser.parse!
|
|
44
|
+
if options.pattern == nil
|
|
45
|
+
puts "ERROR: Must specify pattern. Please use --help"
|
|
46
|
+
exit false
|
|
47
|
+
end
|
|
44
48
|
Runyoufools.main( options )
|
data/lib/runyoufools/version.rb
CHANGED