spec_selector 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +47 -2
- data/lib/spec_selector/instructions.rb +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 943c909a6095c076c4979dc6a027e8218800c4e19da10b0b1e6502c6653ed9fd
|
4
|
+
data.tar.gz: 04badb6692b592d1bdf47971d4aa0380fa0ce75f428538b87b123b50f4664afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a6fcf2deff3e8216991f98ac0d9d9d71f7cb982715f5eda7380ed4ecce3e0ea2b598707eb252a1392de019800615cf8e3d42b1d21a049b5f375c3fec094e12d
|
7
|
+
data.tar.gz: 351bd4fcc941732ec9ea9e4fd69e6b08122acf44e3c2c89b08ecc7c20a4edbac09a57b5cabe62aacfcd258f61b7426b327cac1a9a21f80e673060596d7274fc2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -2,11 +2,15 @@
|
|
2
2
|
|
3
3
|
SpecSelector is an RSpec formatter that opens a utility menu in your terminal window when you run tests (rather than just printing static text). The utility allows you to select, view, filter, and rerun specific test results with simple key controls.
|
4
4
|
|
5
|
-
|
5
|
+
<br>
|
6
|
+
|
7
|
+
**View test results**
|
6
8
|
|
7
9
|
Upon finishing the test run, the test result tree appears as a formatted list of top-level example groups. Select an example group to view its subgroups, select a subgroup to view its examples, and so on. You can view your test results with the selection tool, or just press T to immediately view the top failed test.
|
8
10
|
|
9
|
-
|
11
|
+
<br>
|
12
|
+
|
13
|
+
**Filter and rerun test results**
|
10
14
|
|
11
15
|
Using the selection tool, press M to add the selected group or example to the inclusion filter. Press R to rerun RSpec with only selected tests.
|
12
16
|
|
@@ -16,6 +20,8 @@ Press C to clear the inclusion filter. Press A to clear the inclusion filter and
|
|
16
20
|
|
17
21
|
Press V to view the inclusion filter as a selection list.
|
18
22
|
|
23
|
+
<br>
|
24
|
+
|
19
25
|
_Filter Modes_
|
20
26
|
|
21
27
|
Whenever the inclusion filter is not empty, the filter mode will display at the top center of the terminal window.
|
@@ -24,6 +30,42 @@ There are two filter modes: _description_ and _location_.
|
|
24
30
|
|
25
31
|
The filter always uses description matching by default, but will use location (line number) matching if examples without descriptions (i.e. "one-liners") are selected for inclusion.
|
26
32
|
|
33
|
+
<br>
|
34
|
+
|
35
|
+
**Usage notes**
|
36
|
+
|
37
|
+
_Text color_
|
38
|
+
|
39
|
+
An example description will appear in red text if the example failed, yellow text if the example is pending, or green text if the example passed.
|
40
|
+
|
41
|
+
The color of an example group description is determined by the result status of its examples or recursively by the examples of its subgroups. The description will appear in red text if at least one failed example is present in its tree (e.g. if it contains a subgroup that contains a failed example), yellow text if its tree contains no failed examples and at least one pending example, or green text if every example in its tree passed.
|
42
|
+
|
43
|
+
<br>
|
44
|
+
|
45
|
+
_key controls_
|
46
|
+
|
47
|
+
Note: With the exception of T, letter key inputs are not case sensitive.
|
48
|
+
|
49
|
+
Key control | Description
|
50
|
+
------------|--------------
|
51
|
+
| BACKSPACE | View the list that contains the parent of the current list or example result summary.|
|
52
|
+
| ENTER/RETURN | Select an example group or example from the result list.|
|
53
|
+
| ESCAPE | Return to the top-level result list. If already viewing the top-level list, the escape key has no effect.|
|
54
|
+
| UP/DOWN | Navigate up and down the result list, or, if viewing an example result summary, view the next or previous example result summary.|
|
55
|
+
| A | Clear the inclusion filter and rerun RSpec with all examples.|
|
56
|
+
| C | Clear the inclusion filter.|
|
57
|
+
| F | Rerun RSpec with only failed examples from the current result set. |
|
58
|
+
| I | View or exit instructions.|
|
59
|
+
| M | Include or remove an example or example group from the inclusion filter. |
|
60
|
+
| P | Hide or reveal passing examples in the current result set. |
|
61
|
+
| R | Rerun RSpec with only examples and example groups marked for inclusion. |
|
62
|
+
| T | Rerun RSpec with only the top failed example from the current result set. |
|
63
|
+
| t | View the top failed example result summary from the current result set. |
|
64
|
+
| V | View the inclusion filter as a list. |
|
65
|
+
| Q | Exit spec_selector. |
|
66
|
+
|
67
|
+
<br>
|
68
|
+
|
27
69
|
**Installation**
|
28
70
|
|
29
71
|
````
|
@@ -41,6 +83,9 @@ Or, use the -f option on the command line
|
|
41
83
|
````
|
42
84
|
rspec -f SpecSelector
|
43
85
|
````
|
86
|
+
|
87
|
+
<br>
|
88
|
+
<br>
|
44
89
|
|
45
90
|
|
46
91
|
|
@@ -99,7 +99,7 @@ module SpecSelectorUtil
|
|
99
99
|
empty_line
|
100
100
|
bold('Press F to rerun only failed examples')
|
101
101
|
empty_line
|
102
|
-
bold('Press
|
102
|
+
bold('Press T to rerun only the top failed example')
|
103
103
|
empty_line
|
104
104
|
bold('Press M to include or remove selected item from run filter')
|
105
105
|
empty_line
|
@@ -118,7 +118,7 @@ module SpecSelectorUtil
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def top_fail_text
|
121
|
-
bold 'Press
|
121
|
+
bold 'Press t to view top failed example'
|
122
122
|
end
|
123
123
|
|
124
124
|
def exit_instruction_page
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spec_selector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trevor Almon
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
2oaEU1xxH+4n3qzECM32PIry9QVrTud/3/ouDLy4LVVyutD5ZANsVQrr0y8vEA6+
|
35
35
|
OXcnI0Yc8EI4dmIAwDI0ZfBo2OgFBxNJCeurVx36tUPsSWjJUd0BeA==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2021-
|
37
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: rspec
|
metadata.gz.sig
CHANGED
Binary file
|