Commit graph

1956 commits

Author SHA1 Message Date
Michael Miller
a51640105c
Re-add pre- and post-condition hooks
Accidentally removed in hook refactoring.
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/62
2021-09-16 09:01:51 -06:00
Mike Miller
e5a3a92085 Merge branch 'master' into 'master'
Handle directories with spaces in the path/filename

See merge request arctic-fox/spectator!33
2021-09-16 13:56:06 +00:00
Todd Sundsted
a3b7f5f4b1 Handle directories with spaces in the path/filename 2021-09-16 09:02:34 -04:00
Michael Miller
632845574f
Stringify tags
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/61
2021-09-11 16:05:20 -06:00
Michael Miller
f608081b02
Release 0.10.0 2021-08-19 14:06:07 -06:00
Mike Miller
60085eb726 Merge branch 'release/0.10' into 'master'
v0.10 Release

Closes #57 and #28

See merge request arctic-fox/spectator!29
2021-08-19 19:59:00 +00:00
Michael Miller
09dcbdb383
Fix dumb with JUnit and HTML output 2021-08-19 13:55:58 -06:00
Michael Miller
09414e611b
Brighten yellow for pending 2021-08-19 13:45:22 -06:00
Michael Miller
5d90a99d8e
Update README and CHANGELOG with recent changes
Attempt to clarify confusion around 
https://github.com/icy-arctic-fox/spectator/issues/22
2021-08-19 13:35:15 -06:00
Michael Miller
2f6ef4b578
Fix accidental check-in from testing 2021-08-19 13:16:50 -06:00
Michael Miller
e037e42fa7
Fix links to examples not working 2021-08-19 13:14:53 -06:00
Michael Miller
f5ec9ccff6
CSS!
The HTML report looks beautiful.
2021-08-19 13:07:15 -06:00
Michael Miller
efca1409c6
Fix dumb 2021-08-19 13:00:51 -06:00
Michael Miller
708fd692ae
Add actual label to match data description 2021-08-19 11:46:07 -06:00
Michael Miller
babc7ebc3a
Tweaks 2021-08-18 22:15:50 -06:00
Michael Miller
18b42304c9
Use lists and fix some issues 2021-08-18 18:18:18 -06:00
Michael Miller
dd0ef01369
Initial code for HTML formatter 2021-08-18 17:50:09 -06:00
Michael Miller
f4fc599a1d
Add display_name convenience method 2021-08-18 17:47:20 -06:00
Michael Miller
01d1a8736e
Mark slow compilation tests 2021-08-18 15:57:39 -06:00
Michael Miller
c49522a791
Allow tags on top-level groups 2021-08-18 15:57:22 -06:00
Michael Miller
21d14bd814
Add f-prefix variants of groups and examples
For instance: `fit` for `it "...", :focus`
2021-08-18 13:55:21 -06:00
Michael Miller
2b27ea5a01
Quick implementation of filter_run_when_matching
Needed for focus tests.
2021-08-18 13:46:54 -06:00
Michael Miller
fd4812207a
Whitespace 2021-08-18 11:27:06 -06:00
Michael Miller
1e82608500
Add methods matching RSpec for configuring include and exclude tags 2021-08-17 23:40:58 -06:00
Michael Miller
c209fe7259
Add ascend methods 2021-08-17 22:10:01 -06:00
Michael Miller
8d366bf637
Fully implemented test filtering by tags
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/16
2021-08-17 21:54:01 -06:00
Michael Miller
ffb99a21d5
Update changelog to mention group matching 2021-08-17 21:44:15 -06:00
Michael Miller
a9a46c76ad
Support tag filtering with value 2021-08-17 21:34:26 -06:00
Michael Miller
b79dd4361e
Initial implementation of tag filtering 2021-08-17 20:52:06 -06:00
Michael Miller
38ea2e7f96
Address Ameba issue 2021-08-17 15:02:34 -06:00
Michael Miller
94d5c96e7d
Implement an example filter that supports matching groups
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/25 and 
https://github.com/icy-arctic-fox/spectator/issues/24
2021-08-17 14:09:37 -06:00
Michael Miller
65799fdd3b
Pass along end line 2021-08-17 13:49:58 -06:00
Michael Miller
67b4c0589b
Implement NodeIterator 2021-08-17 12:55:49 -06:00
Michael Miller
cf7d67c972
Simplify ExampleIterator and remove unecessary allocations 2021-08-17 12:55:22 -06:00
Michael Miller
837e4cb85d
Implement Indexable(Node) on ExampleGroup 2021-08-17 12:54:36 -06:00
Michael Miller
4e5a52215a
Simplify 2021-08-16 20:27:27 -06:00
Michael Miller
3803d4582c
Use Iterable(Node) instead of ExampleGroup 2021-08-16 20:27:21 -06:00
Michael Miller
aa81f1d948
Change ExampleFilter to a NodeFilter
Node filters may operate on example groups as well as examples.
2021-08-08 12:13:59 -06:00
Michael Miller
0f7a9ed9e8
Remove append and prepend variants of hook definition methods
RSpec defines these as applying to a scope (example, context, suite) as 
opposed to example group.
Mimicing this is currently not possible in Spectator and would require a 
substantial restructure of how hooks are handled.
This may be implemented in the future.
2021-08-08 11:50:30 -06:00
Michael Miller
91d21b38e2
Lazily initialize global DSL spec builder
Require config to create a spec builder.
Config should be fully set up before any DSL is encountered.
2021-08-08 11:25:06 -06:00
Michael Miller
605b82c532
Add prepend and append variants of hooks to DSL 2021-08-08 10:51:39 -06:00
Michael Miller
841efc236d
Fix flipped append/prepend of "after" hooks 2021-08-08 10:27:34 -06:00
Michael Miller
b9f0a31a4a
Overhaul hooks
Mostly cleanup and make managing hooks simpler, hopefully.
Tests indicate this configuration matches hook execution order of RSpec.
2021-08-07 21:45:49 -06:00
Michael Miller
10b652f4b5
Remove unique/temp names 2021-07-31 19:11:51 -06:00
Michael Miller
3dc3b88dbe
Add "after" hooks in reverse order to match RSpec 2021-07-31 15:48:54 -06:00
Michael Miller
edcb5118e6
Show pending count only if there are pending examples 2021-07-31 15:02:21 -06:00
Michael Miller
abe78410c4
Formatting 2021-07-31 14:18:59 -06:00
Michael Miller
868aa1d00a
Support custom handling of hooks 2021-07-31 14:16:39 -06:00
Michael Miller
f53ffabf6b
Support label for aggregate_failures block 2021-07-31 12:04:43 -06:00
Michael Miller
4c125d98d4
Implement aggregate_failures 2021-07-31 11:56:53 -06:00