Commit Graph

37 Commits

Author SHA1 Message Date
Michael Miller 726a2e1515
Add non-captured block argument
Preparing for Crystal 1.8.0
https://github.com/crystal-lang/crystal/issues/8764
2023-01-26 17:19:31 -07:00
Michael Miller 0e556c3d55
Clear stubs and recorded calls after example completes 2022-07-12 20:40:27 -06:00
Michael Miller 8ac6546bdd
Rip out more existing mocks 2022-02-28 22:15:29 -07:00
Michael Miller 59ce312341
Fix typos and spelling 2021-11-28 15:45:17 -07: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
Michael Miller 6c6dff363b
Track source location of pending result 2021-07-17 16:25:32 -06:00
Michael Miller 6c55301d0b
Merge remote-tracking branch 'origin/master' into release/0.10 2021-07-11 00:16:25 -06:00
Michael Miller aa12cdf17c
Introduce non-expectation error ExampleFailed
Used by fail method.
Still todo: Output from failed example is missing because there are no 
expectations.
2021-07-10 03:32:55 -06:00
Michael Miller a5ed5d0fb1
Pass exception failure message to error 2021-06-12 10:33:28 -06:00
Michael Miller 14d45756e9
Consolidate default pending reason 2021-06-11 18:59:10 -06:00
Michael Miller b43b09f46d
Change order of pending result parameters 2021-06-11 18:31:41 -06:00
Michael Miller 5a2a71ffe8
Pass and output along reason for pending/skip result 2021-06-09 22:15:15 -06:00
Michael Miller 8d73434e0b
Add ability to mark example skipped/pending mid-test 2021-06-09 21:57:17 -06:00
Michael Miller 76dd5603de
Fix harness not updating current 2021-05-29 17:13:14 -06:00
Michael Miller 1ea209184e
Formatting 2021-05-12 21:41:56 -06:00
Michael Miller ff084bb3cd
Fix dumb mistakes 2021-05-12 21:40:48 -06:00
Michael Miller ff5d855389
Cleanup harness some 2021-05-06 22:10:40 -06:00
Michael Miller 02b98ea61b
Remove reference to example from result
Pass examples instead of results into formatters.
2021-04-26 18:47:11 -06:00
Michael Miller 0332b6eb3b
Log when deferred operations run 2021-01-30 21:07:42 -07:00
Michael Miller e44505d4c1
Set nameless example to matcher description 2021-01-30 21:00:01 -07:00
Michael Miller 82e13f5434
Sloppily handle deferred operations 2021-01-30 20:53:09 -07:00
Michael Miller 9743f37e5c
Capture reported expectations 2021-01-30 20:07:45 -07:00
Michael Miller 9d139dfeed
Hack together result output 2021-01-30 19:42:46 -07:00
Michael Miller 3b5086c74b
Re-add mocks to harness 2021-01-30 17:27:02 -07:00
Michael Miller a8840351d5
More work hooking up expectations 2021-01-21 00:03:57 -07:00
Michael Miller 0992bad7eb
Get harness compiling again 2021-01-16 11:03:05 -07:00
Michael Miller 4230ec70a0
Move test handling code to Harness 2020-11-07 20:56:30 -07:00
Michael Miller 88ed415191 Bubble up matcher description
The last run matcher's description is used if one wasn't provided by the 
user.
Only applies to examples that actually run and have expectations.
2020-01-02 19:19:55 -07:00
Michael Miller 763c99f338 Formatting 2019-11-14 18:48:43 -07:00
Michael Miller 28ec1062e8 Merge branch 'release/0.9' into dev/mocks-and-doubles 2019-11-14 18:47:25 -07:00
Michael Miller 2128184659 Implement defer logic in harness 2019-11-14 18:30:48 -07:00
Michael Miller d2e27d1e6e Pass test context to registry 2019-11-10 13:08:43 -07:00
Michael Miller 14876a8e9a Add default stubs to TestContext
Pass default stubs into mocks registry on example startup.
2019-11-10 12:35:03 -07:00
Michael Miller 11ea7bf2ce Move mock containment to harness 2019-11-09 23:22:21 -07:00
Michael Miller 8c180e818f Merge remote-tracking branch 'origin/release/0.9' into mocks-and-doubles 2019-09-27 14:12:29 -06:00
Michael Miller 7e6080aa5f Move harness out of internals 2019-09-26 15:11:54 -06:00
Renamed from src/spectator/internals/harness.cr (Browse further)