minitest-repeat 0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 19f16f408b6f6d71f91b025d591538a69e06e1ae
4
+ data.tar.gz: e86a415e3f5b1dfb8447a635f81746959c9546e9
5
+ SHA512:
6
+ metadata.gz: cc535e609af4d27e62535cbee6dc2f74b84dc036fbc5a1541d022b7d8de4ed32547e5c51d30a60d03097251fff797f2e1a5c49d21ba549a686531f47558efdb4
7
+ data.tar.gz: 32e77b4d218083059b74d66539ae1949377d4b5dee3b4d9f1ce5a311a7168e41292bc0617586e59bac5c2a68361bf4425cdcd1f88a76a1c3515b25076ec3b1e8
@@ -0,0 +1,50 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Michael Lutsiuk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ # minitest-repeat
2
+ Adds a "repeat" functionality to minitest
3
+
4
+ # Usage
5
+
6
+ You should add this library to `$LOAD_PATH` or to Gemfile.
7
+
8
+ Use `-c` or `--count` argument to specify how many times you want your tests to
9
+ run.
10
+
11
+
12
+ # Example
13
+
14
+ This code runs test.rb 10 times
15
+ ```
16
+ ruby test.rb --count 10
17
+ ruby test.rb -c 10
18
+
19
+ # With rake/tasklib
20
+ TESTOPTS="--count=10" rake test
21
+ ```
@@ -0,0 +1,17 @@
1
+ module Minitest
2
+ def self.plugin_repeat_init(*)
3
+ instance_eval do
4
+ alias :__orig_run :__run
5
+
6
+ def __run(*args)
7
+ @count.to_i.times { __orig_run(*args) }
8
+ end
9
+ end
10
+ end
11
+
12
+ def self.plugin_repeat_options(opts, *)
13
+ opts.on '-c', '--count COUNT', Integer, 'Run tests COUNT times' do |c|
14
+ @count = c.to_i
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # coding: utf-8
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'minitest-repeat'
5
+ spec.version = '0.1'
6
+ spec.authors = ['Michael Lutsiuk']
7
+ spec.email = ['michael.lutsiuk@gmail.com']
8
+ spec.summary = 'Allows to run your minitest suites more than one time'
9
+ spec.description = ''
10
+ spec.homepage = 'https://github.com/mluts/minitest-repeat'
11
+ spec.license = 'MIT'
12
+
13
+ spec.files = `git ls-files -z`.split("\x0")
14
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
+ spec.require_paths = ['lib']
17
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minitest-repeat
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - Michael Lutsiuk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: ''
14
+ email:
15
+ - michael.lutsiuk@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - LICENSE
22
+ - README.md
23
+ - lib/minitest/repeat_plugin.rb
24
+ - minitest-repeat.gemspec
25
+ homepage: https://github.com/mluts/minitest-repeat
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 2.6.8
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: Allows to run your minitest suites more than one time
49
+ test_files: []