minitag 0.6.0 → 0.6.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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +9 -9
- data/.rubocop.yml +4 -0
- data/Gemfile.lock +2 -2
- data/README.md +18 -14
- data/lib/minitag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: edc15f86cd75fafe193dda4ce0c3ec53195a3c831b3b364c1268468cec1fa58b
|
|
4
|
+
data.tar.gz: a7cba97a2c8f4cde4263f7d4e880510a6f14a6606649eb3920bfe0a569ef9805
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e2aa1f83f281212d0417747906b9ec9cc0e7e97f9aa7d0d38eac636d1d8d0f98c555cace09b410ee2655c060e4008fa5eaafae7225f4a674f26e1bb9a19810c
|
|
7
|
+
data.tar.gz: 31b67943091e116adf9ec47a751075b8d1e5fac32480a04bbbd406bcaa732252d31fb274cfd5645f6a2cf8ded9318817dce1537eaf707572aa090e9b3a438421
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
name: continuous-integration
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
2
|
+
on: [push, pull_request]
|
|
7
3
|
|
|
8
4
|
jobs:
|
|
9
5
|
ci:
|
|
10
6
|
runs-on: ubuntu-latest
|
|
7
|
+
strategy:
|
|
8
|
+
matrix:
|
|
9
|
+
ruby: [ '2.6', '2.7' ]
|
|
10
|
+
name: Ruby ${{ matrix.ruby }}
|
|
11
11
|
steps:
|
|
12
12
|
- uses: actions/checkout@v2
|
|
13
|
-
- name: Set up Ruby
|
|
13
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
|
14
14
|
uses: actions/setup-ruby@v1
|
|
15
15
|
with:
|
|
16
|
-
ruby-version:
|
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
|
17
17
|
- name: Cache gems
|
|
18
18
|
uses: actions/cache@v2
|
|
19
19
|
with:
|
|
20
20
|
path: vendor/bundle
|
|
21
|
-
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
|
21
|
+
key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
|
22
22
|
restore-keys: |
|
|
23
|
-
${{ runner.os }}-gem-
|
|
23
|
+
${{ runner.os }}-${{ matrix.ruby }}-gem-
|
|
24
24
|
- name: Install gems
|
|
25
25
|
run: |
|
|
26
26
|
sed -i '/ruby ".*"/,+1 d' Gemfile
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
minitag (0.6.
|
|
4
|
+
minitag (0.6.1)
|
|
5
5
|
minitest (~> 5.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -15,7 +15,7 @@ GEM
|
|
|
15
15
|
rainbow (3.0.0)
|
|
16
16
|
rake (13.0.1)
|
|
17
17
|
regexp_parser (1.7.1)
|
|
18
|
-
rexml (3.2.
|
|
18
|
+
rexml (3.2.5)
|
|
19
19
|
rubocop (0.87.1)
|
|
20
20
|
parallel (~> 1.10)
|
|
21
21
|
parser (>= 2.7.1.1)
|
data/README.md
CHANGED
|
@@ -7,14 +7,6 @@ A simple gem that allow developers using minitest to specify tags for their clas
|
|
|
7
7
|
This gem should be framework agnostic, let me know if you encounter any problems
|
|
8
8
|
running this within the framework of your choice.
|
|
9
9
|
|
|
10
|
-
## When should I use this?
|
|
11
|
-
|
|
12
|
-
- When there's a need to split a test suite into different CI steps.
|
|
13
|
-
- During development, it's helpful to have extra flexibility when running a big
|
|
14
|
-
test suite.
|
|
15
|
-
- When there are tests that you want to run only occasionality. For example,
|
|
16
|
-
tests that perform network calls or have expensive side effects.
|
|
17
|
-
|
|
18
10
|
## Installation
|
|
19
11
|
|
|
20
12
|
Add this line to your application's Gemfile:
|
|
@@ -31,12 +23,6 @@ $ gem install minitag
|
|
|
31
23
|
|
|
32
24
|
## Usage
|
|
33
25
|
|
|
34
|
-
### Setup
|
|
35
|
-
|
|
36
|
-
Require `minitag` within `test_helper.rb`:
|
|
37
|
-
|
|
38
|
-
`require 'minitag'`
|
|
39
|
-
|
|
40
26
|
### Adding tags
|
|
41
27
|
|
|
42
28
|
We can tag specific classes or tests with one or more tags.
|
|
@@ -84,6 +70,24 @@ $ bundle exec rake test --tag '~unit'
|
|
|
84
70
|
$ bundle exec rake test --tag 'unit' --tag '~parallel'
|
|
85
71
|
```
|
|
86
72
|
|
|
73
|
+
## FAQ
|
|
74
|
+
|
|
75
|
+
### Is this gem compatible with Rails?
|
|
76
|
+
|
|
77
|
+
Yes. Found any problems? Please open an issue or reach out to me.
|
|
78
|
+
|
|
79
|
+
### Is this gem compatible with the spec part of minitest?
|
|
80
|
+
|
|
81
|
+
For the most part yes, but tagging `describe` blocks are not supported.
|
|
82
|
+
|
|
83
|
+
### When should I use this gem?
|
|
84
|
+
|
|
85
|
+
- When there's a need to split a test suite into different CI steps.
|
|
86
|
+
- During development, it's helpful to have extra flexibility when running a big
|
|
87
|
+
test suite.
|
|
88
|
+
- When there are tests that you want to run only occasionality. For example,
|
|
89
|
+
tests that perform network calls or have expensive side effects.
|
|
90
|
+
|
|
87
91
|
## Development
|
|
88
92
|
|
|
89
93
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/minitag/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bernardo de Araujo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|