Commit graph

681 commits

Author SHA1 Message Date
Michael Miller
93368503e6 Cleanup JUnit test case hierarchy 2019-03-23 16:07:40 -06:00
Michael Miller
3776cd917e Initial code for JUnit output 2019-03-23 15:31:53 -06:00
Michael Miller
4890cafefa Ability to enumerate each result in report 2019-03-23 14:44:00 -06:00
Michael Miller
4d38bf3ab2 Add secondary initializer 2019-03-23 14:38:51 -06:00
Michael Miller
edbcff03a5 Implement TAP formatter 2019-03-23 00:25:46 -06:00
Michael Miller
886dfa56c6 JSON formatter is complete 2019-03-22 21:52:48 -06:00
Michael Miller
29dc833ea3 Add report stats, timing, and result 2019-03-22 21:48:00 -06:00
Michael Miller
dca2925461 Simplify to_json calls 2019-03-22 21:43:33 -06:00
Michael Miller
09b6dee004 Move the remaining to_json methods to their own types 2019-03-22 21:29:20 -06:00
Michael Miller
b12c1aba96 Move to_json builder methods into result classes 2019-03-22 21:23:14 -06:00
Michael Miller
c869e4fc9a Add to_s methods for result types 2019-03-22 20:12:36 -06:00
Michael Miller
82a4a15ba9 Initial work on JSON formatter 2019-03-22 20:11:58 -06:00
Michael Miller
ba0453c5ea Implement dry-run mode 2019-03-22 14:18:03 -06:00
Michael Miller
435f971c87 Add dry-run to config 2019-03-22 14:05:48 -06:00
Michael Miller
46e3246c5c Fix new lines with pending tests 2019-03-22 14:00:58 -06:00
Michael Miller
acfe9d2808 Conditionally remove blank lines 2019-03-22 13:53:06 -06:00
Michael Miller
caf19ffbd8 Formatting 2019-03-22 13:49:37 -06:00
Michael Miller
748b0223af Adjust output formatting for fail-blank mode 2019-03-22 13:48:47 -06:00
Michael Miller
209ef92d3d Implement "fail-blank" into runner and report 2019-03-22 13:41:46 -06:00
Michael Miller
165178237c Add dummy match data
Apparently the abstract bug pops up again when there are no tests.
2019-03-22 13:34:44 -06:00
Michael Miller
31d58fea25 Add "fail-blank" config option 2019-03-22 13:21:37 -06:00
Michael Miller
d22b628526 Stub remaining options from Crystal's default Spec 2019-03-22 13:15:17 -06:00
Michael Miller
a57e596a62 Add -h flag to show help 2019-03-22 13:08:32 -06:00
Michael Miller
2b71400d9a Remove tests that had a prefixed actual value 2019-03-22 13:05:24 -06:00
Michael Miller
66ac2eb080 Missing space between prefix and value 2019-03-22 13:03:33 -06:00
Michael Miller
c197f3236f Actual values should not be prefixed 2019-03-22 13:01:55 -06:00
Michael Miller
c156c55c72 Inspect the underlying value
This is needed because MatchDataValue is now a class instead of a 
struct.
2019-03-22 11:55:04 -06:00
Michael Miller
e7e1d0e084 Change how values are passed to helper
Working around a segfault (dunno why this fixes it).
2019-03-22 11:53:20 -06:00
Michael Miller
d705ef657c Update specs to handle new match data values 2019-03-22 11:41:39 -06:00
Michael Miller
3dd39f17f5 Fix Expectation spec 2019-03-22 11:07:56 -06:00
Michael Miller
31acc707dc Fix stringified inspection of generic match data value 2019-03-22 11:04:11 -06:00
Michael Miller
5e80b3835a MatchDataValue must be a class
Negatable value modifiers don't get updated when they're structs.
2019-03-22 11:01:47 -06:00
Michael Miller
a19d9f00aa Update formatters to handle new labeled values 2019-03-22 11:00:00 -06:00
Michael Miller
92b407380b Fix negation of values in Expectation 2019-03-22 10:57:53 -06:00
Michael Miller
33841e8888 Sub-type value modifier from MatchDataValue
This includes renaming the types.
2019-03-22 10:55:57 -06:00
Michael Miller
4f6309a032 Rename values to named_tuple in match data types 2019-03-22 10:41:23 -06:00
Michael Miller
8d3ab0d44c Transform named tuple match data to array
Trying to keep some of the existing code (and better syntax).
2019-03-22 10:38:09 -06:00
Michael Miller
66bd1555ac Use Symbol instead of String 2019-03-22 10:35:43 -06:00
Michael Miller
0b467012cb Initial work on match data values management 2019-03-22 10:30:03 -06:00
Michael Miller
51c267896f Config block is technically implemented
Will need to add methods to the builder as features are added.
2019-03-22 10:11:30 -06:00
Michael Miller
dba047e1ec Formatting 2019-03-22 00:16:09 -06:00
Michael Miller
a804907f75 Add text to output for fail-fast 2019-03-22 00:14:36 -06:00
Michael Miller
a31d5c8b5b Implement fail-fast in runner
Report tracks number of omitted tests due to abort.
2019-03-22 00:05:53 -06:00
Michael Miller
9e63c20df2 Add fail-fast to config 2019-03-21 23:40:00 -06:00
Michael Miller
fe81586527 Pass builder instead of individual arguments
Config members will get large.
Preventing a large amount of arguments in advance.
2019-03-21 23:03:13 -06:00
Michael Miller
42e8064e5c Config file is technically done
The configuration file uses the command-line arguments.
2019-03-21 22:55:58 -06:00
Michael Miller
f2558fd09e Add spec for ExceptionMatcher 2019-03-21 22:50:02 -06:00
Michael Miller
244947a81d Wrap stringified block with back-ticks 2019-03-21 21:21:05 -06:00
Michael Miller
4a887bb906 Add DSL for expect_raises 2019-03-21 21:18:36 -06:00
Michael Miller
f3ef2e561e Initial implementation of raise_error matcher 2019-03-21 21:10:16 -06:00