Michael Miller
|
b53e1b60d8
|
Add BaseExampleHooks class
This is the first part in enabling before_each and after_each hooks to
access the example code's scope.
|
2019-01-01 16:33:07 -07:00 |
|
Michael Miller
|
e0273d660c
|
Display cause of errors
|
2018-12-27 15:47:29 -07:00 |
|
Michael Miller
|
c0be260f98
|
Ability to limit number of items sampled
|
2018-12-27 15:11:28 -07:00 |
|
Michael Miller
|
18fe2b7aa8
|
Update README regarding sample and given
|
2018-12-27 11:16:50 -07:00 |
|
Michael Miller
|
c1b27bb672
|
Rename "given" to "sample"
This falls in line with the `SampleValues` type.
It also frees up the keyword "given" to be used for something else.
|
2018-12-27 11:15:44 -07:00 |
|
Michael Miller
|
3573845dc2
|
Finally implement pending test
|
2018-12-13 14:53:04 -07:00 |
|
Michael Miller
|
77efdd84be
|
Use tuples instead of parallel arrays
|
2018-12-13 14:48:20 -07:00 |
|
Michael Miller
|
5a87753c7d
|
Add test for SampleValues#each
|
2018-12-13 14:41:22 -07:00 |
|
Michael Miller
|
62549aae88
|
Functionality to retrieve all sample values
|
2018-12-13 14:30:11 -07:00 |
|
Michael Miller
|
c73af72c7f
|
Move formatter to config
|
2018-12-13 14:16:49 -07:00 |
|
Michael Miller
|
23368f6183
|
Structure for applying configuration
|
2018-12-13 13:50:59 -07:00 |
|
Michael Miller
|
9527427b45
|
Move error message output to another method
|
2018-12-12 15:33:54 -07:00 |
|
Michael Miller
|
38ec35dd29
|
Have the DSL builder produce a test suite
|
2018-12-12 15:27:40 -07:00 |
|
Michael Miller
|
6c5da5a703
|
Shuffle code around for runner
|
2018-12-12 15:22:56 -07:00 |
|
Michael Miller
|
c29748ede5
|
Restructuring how the test suite is driven
|
2018-12-12 11:48:08 -07:00 |
|
Michael Miller
|
6f5b03dc0f
|
Add top-level namespace docs
|
2018-12-10 16:08:25 -07:00 |
|
Michael Miller
|
4e0c821b8f
|
Add FinishedResult intermediary class
|
2018-12-10 14:07:14 -07:00 |
|
Michael Miller
|
9e004324c9
|
Remove shared elapsed time
Since PendingResult always returns zero, it's not necessary to store it.
|
2018-12-10 11:16:43 -07:00 |
|
Michael Miller
|
56e8f8978b
|
Detect errors in around_each hooks
|
2018-12-07 23:28:30 -07:00 |
|
Michael Miller
|
ef12e3967b
|
Add checks for cause of hook error
Fix some tests that had copy/paste mistakes.
|
2018-12-07 23:07:04 -07:00 |
|
Michael Miller
|
ef490c78b0
|
Fix test
|
2018-12-07 23:01:08 -07:00 |
|
Michael Miller
|
4e57f6adca
|
Don't run after hooks if an error occurs
|
2018-12-07 23:01:02 -07:00 |
|
Michael Miller
|
4222603fea
|
Don't need reference to result anymore
|
2018-12-07 22:57:31 -07:00 |
|
Michael Miller
|
d710929479
|
Fix collateral damage from rev aeebbaa
|
2018-12-07 22:53:17 -07:00 |
|
Michael Miller
|
aeebbaa5b6
|
Raise error instead of failing test
If an error occurs in any hooks, raise it instead of failing the test.
|
2018-12-07 22:43:26 -07:00 |
|
Michael Miller
|
22f32eb03e
|
Fix tests that had issues setting children
|
2018-12-07 22:42:52 -07:00 |
|
Michael Miller
|
2aa7a75eea
|
Implement remaining hook error tests
|
2018-12-07 22:05:23 -07:00 |
|
Michael Miller
|
99de2335aa
|
More tests for exceptions in hooks
|
2018-12-07 17:02:53 -07:00 |
|
Michael Miller
|
e87f0b5e64
|
Ability to pass custom hooks to SpyExample
|
2018-12-07 17:02:07 -07:00 |
|
Michael Miller
|
f20a0e2241
|
Formatting
|
2018-12-05 20:27:31 -07:00 |
|
Michael Miller
|
2ce599d6a4
|
Some initial work on runnable example tests
|
2018-12-05 20:25:11 -07:00 |
|
Michael Miller
|
06230f128d
|
Add example for producing errors
|
2018-12-05 20:25:11 -07:00 |
|
Michael Miller
|
712aa99fed
|
Adjust tests to use new hook methods
|
2018-12-05 20:21:19 -07:00 |
|
Michael Miller
|
bd4d020d0f
|
Condense visible hook methods
|
2018-12-05 19:57:14 -07:00 |
|
Michael Miller
|
e0f5862960
|
Add missing proc call
|
2018-11-26 14:27:32 -07:00 |
|
Michael Miller
|
3207b7c8d2
|
Add tests for hooks
|
2018-11-26 14:21:43 -07:00 |
|
Michael Miller
|
1193fdc8ff
|
Add spec for PendingExample
|
2018-11-26 14:01:15 -07:00 |
|
Michael Miller
|
bd8df38ecd
|
Docs for RootExampleGroup
|
2018-11-23 23:54:54 -07:00 |
|
Michael Miller
|
b414438627
|
Add spec for RootExampleGroup
|
2018-11-23 11:20:28 -07:00 |
|
Michael Miller
|
d117f487a3
|
Implement remaining tests
|
2018-11-20 20:56:33 -07:00 |
|
Michael Miller
|
e1501c3416
|
Some tests for NestedExampleGroup
|
2018-11-20 16:34:48 -07:00 |
|
Michael Miller
|
c68cd7e16a
|
Move example hooks helper methods to their own file
|
2018-11-20 14:51:11 -07:00 |
|
Michael Miller
|
fad3eba11f
|
Add docs for NestedExampleGroup
|
2018-11-20 14:04:14 -07:00 |
|
Michael Miller
|
7517042195
|
Add spec for ExpectationFailed
|
2018-11-20 12:55:37 -07:00 |
|
Michael Miller
|
b8ee29ab0e
|
Formatting
|
2018-11-20 12:48:19 -07:00 |
|
Michael Miller
|
1802f27f68
|
Add spec for ExampleIterator
|
2018-11-20 12:47:55 -07:00 |
|
Michael Miller
|
c7963b70a3
|
Add docs for ExampleIterator
|
2018-11-20 11:51:47 -07:00 |
|
Michael Miller
|
f3feabb6e0
|
Reduce nesting of conditionals
|
2018-11-19 23:46:14 -07:00 |
|
Michael Miller
|
101489ea19
|
Add spec for ExampleHooks
|
2018-11-19 22:51:59 -07:00 |
|
Michael Miller
|
d576e4a1fa
|
Missing # prefix for #to_not and #not_to
|
2018-11-19 22:00:45 -07:00 |
|