Commit Graph

53 Commits

Author SHA1 Message Date
Michael Miller bc0a9c03c9
Remove runtime compilation tests
These may be readded later.
Right now they're failing because the GitHub issue 44 spec changes the behavior of Process.run.
The changes made by that spec shouldn't leak, but to fix correctly requires substantial changes.
These runtime tests provide little value right now and slow down testing.
2022-10-09 16:47:54 -06:00
Michael Miller 941b91fef4
Spelling 2022-01-10 21:10:36 -07:00
Michael Miller 103597a7be
Update runtime JSON parsing to use new structure 2021-06-02 23:59:42 -06:00
Michael Miller 2c33e96dd4
Fix parsing passing spec 2021-01-30 20:14:25 -07:00
Michael Miller d31b8f4093
Disable false warning from Ameba
spec_helper_path is actually used by the ECR template.
2020-08-16 12:10:32 -06:00
Michael Miller fab216419c
Capture expectations 2020-08-16 11:39:54 -06:00
Michael Miller 14608c8b2d
Change to struct 2020-08-16 11:00:46 -06:00
Michael Miller 5688e58025
Initial runtime test compilation
Allows for compiling single examples at runtime.
2020-08-16 10:59:15 -06:00
Michael Miller 2c400950a4 Remove specs since they're mostly invalidated by the refactor 2019-09-26 20:52:26 -06:00
Michael Miller 43dc106c18 Add return type annotations
Addresses Crystal compiler warning about abstract method return types.
2019-09-23 20:32:21 -06:00
Michael Miller a54e406fec Clean up expectation specs
Removed tests that are no longer valid or non-trivial to update.
2019-08-09 15:32:22 -06:00
Michael Miller 1d530de5b1 Add tests for fail-fast and after hooks
Inspecting issue #2
2019-04-22 19:12:45 -06:00
Michael Miller b305c829be Allow hooks and conditions to be passed to create 2019-04-22 18:22:12 -06:00
Michael Miller aabc25ad4f Change formatters to take nillable profile 2019-03-25 16:05:38 -06:00
Michael Miller 35b887f8f0 Add placeholders for profile functionality 2019-03-25 12:13:11 -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 33841e8888 Sub-type value modifier from MatchDataValue
This includes renaming the types.
2019-03-22 10:55:57 -06:00
Michael Miller f2558fd09e Add spec for ExceptionMatcher 2019-03-21 22:50:02 -06:00
Michael Miller 0ca0ba0a55 Fix tests to account for negation wrappers 2019-03-07 16:12:23 -07:00
Michael Miller a9d1f1aabc Workaround for mashup of compile-time types 2019-03-06 18:40:57 -07:00
Michael Miller daf2f43f25 Rename module from Formatters to Formatting 2019-02-28 19:14:03 -07:00
Michael Miller 6942e70024 Remove unnecessary type specification 2019-02-28 15:18:56 -07:00
Michael Miller 5ba03a90ff Swap label and expected value parameters
This matches the partial initializer parameters.
Also cleaned up some code in the Expectation spec.
2019-02-28 15:17:12 -07:00
Michael Miller 26187a0f31 Fix oddity with type being unresolvable 2019-02-27 22:20:57 -07:00
Michael Miller c1f61d68bf Use MatchData 2019-02-26 20:29:04 -07:00
Michael Miller 919e2b96f6 Update specs for new Result#call functionality 2019-02-20 21:17:27 -07:00
Michael Miller 6cc3c5e20b Add tests for adding/omitting the space in #to_s 2019-02-17 17:03:57 -07:00
Michael Miller fe083b0f74 Update specs to handle and test symbolic components 2019-02-17 16:39:23 -07:00
Michael Miller 6a8d447570 Add tests for Result#call implementations 2019-02-17 14:40:05 -07:00
Michael Miller ed01a95e67 Replace source file and line with source struct 2019-02-17 12:40:16 -07:00
Michael Miller 1507a447c8 Update specs to use new source arguments
Used `new_partial` where the underlying partial didn't matter for the
test.
2019-02-14 17:04:59 -07:00
Michael Miller 36c98db0ae Update spec helpers to have source information 2019-02-14 15:41:59 -07:00
Michael Miller 577877e067 Add spec for runner
Added a spy for detecting when formatter methods are called.
2019-02-12 16:10:14 -07:00
Michael Miller 50bc1af816 Method for creating groups of spy examples 2019-02-12 13:45:19 -07:00
Michael Miller ff4e148509 Rename ValueExpectation to Expectation in tests 2019-01-31 13:30:09 -07:00
Michael Miller ac08806010 Add spec for RangeMatcher 2019-01-25 13:12:34 -07:00
Michael Miller f09aaf59e6 Formatting 2019-01-23 21:11:01 -07:00
Michael Miller 73c4334246 Use macros to create methods for all watched operators 2019-01-23 21:02:32 -07:00
Michael Miller 37c45eb285 Shorten pre and post usage 2019-01-23 14:46:15 -07:00
Michael Miller a32b511e0b Add spec for `match` (regex) matcher 2019-01-19 14:49:13 -07:00
Michael Miller f2569ea3a0 Add spec for `be` matcher 2019-01-19 13:50:57 -07:00
Michael Miller db89a99562 Add specs for ExampleConditions 2019-01-17 14:14:10 -07:00
Michael Miller d9363fc8a7 Update existing specs to support conditions 2019-01-11 10:09:40 -07:00
Michael Miller 191eb02cbe Add dummy instance values 2019-01-01 17:06:24 -07:00
Michael Miller e87f0b5e64 Ability to pass custom hooks to SpyExample 2018-12-07 17:02:07 -07:00
Michael Miller 06230f128d Add example for producing errors 2018-12-05 20:25:11 -07:00
Michael Miller c68cd7e16a Move example hooks helper methods to their own file 2018-11-20 14:51:11 -07:00
Michael Miller ee2491fef8 Down-cast to preven type issues when inferring arrays 2018-11-16 11:38:50 -07:00
Michael Miller 49deb96a11 Capture harness in spy example 2018-11-14 12:58:32 -07:00