Commit Graph

1401 Commits

Author SHA1 Message Date
Michael Miller b4e74444d1
Some work on hooks in DSL 2020-11-08 22:21:52 -07:00
Michael Miller 7d54884196
Don't pass context, get/cast from example instance 2020-11-08 16:53:54 -07:00
Michael Miller b8dc83286c
Upcast context to reduce method instances generated by compiler 2020-11-08 16:52:08 -07:00
Michael Miller f433405ece
Scratch work
Trying to implement hooks. Ran into a problem with contexts.
2020-11-08 15:06:49 -07:00
Michael Miller 688c08b087
Initial work on hooks rework 2020-11-07 22:04:37 -07:00
Michael Miller 1f319a70ce
Add docs 2020-11-07 22:04:21 -07:00
Michael Miller 4230ec70a0
Move test handling code to Harness 2020-11-07 20:56:30 -07:00
Michael Miller dba2e23750
Typo 2020-11-07 15:24:22 -07:00
Michael Miller f7fe177685
Minor adjustments 2020-11-07 15:01:08 -07:00
Michael Miller 8ae6ef478b
Dynamic examples with null context 2020-11-07 14:43:59 -07:00
Michael Miller 40dd85eb38
Bit of naming cleanup 2020-11-07 13:47:39 -07:00
Michael Miller 347e1a84e5
Dedicated example runner type 2020-11-07 13:47:31 -07:00
Michael Miller b8901d485d
Merge branch 'master' into example-api 2020-11-07 11:18:47 -07:00
Michael Miller 27754c9e03
Bump version to 0.9.28 2020-11-07 11:04:34 -07:00
Michael Miller b91103b40a
Handle case where block is provided with return type 2020-11-07 11:04:03 -07:00
Michael Miller 8966c0976b
Allow manual specification of return type 2020-11-07 10:56:33 -07:00
Michael Miller e8afe5070b
Address Ameba issues 2020-10-19 20:34:18 -06:00
Michael Miller a0e6d5c4e8
Re-introduce config options 2020-10-19 20:19:25 -06:00
Michael Miller c36e006c85
Move top-level DSL to its own module 2020-10-17 22:57:27 -06:00
Michael Miller 87c8914187
Typo 2020-10-17 22:12:47 -06:00
Michael Miller e4f3d334ed
Consistent naming of random seed 2020-10-17 22:12:02 -06:00
Michael Miller 225e1a52ba
Clean up example randomization 2020-10-17 22:11:04 -06:00
Michael Miller b2bf980685
Some config cleanup 2020-10-17 21:39:41 -06:00
Michael Miller 79499c5d2e
Add config to spec builder 2020-10-17 17:40:38 -06:00
Michael Miller 4462f27316
Rework result types 2020-10-17 14:56:31 -06:00
Michael Miller 788b12a8bc
Fix example methods overriding previously defined methods 2020-10-17 12:12:04 -06:00
Michael Miller 27875631d3
Mostly implement inspect method 2020-10-17 11:51:16 -06:00
Michael Miller 9c1fd6fb5a
Use standard log utility 2020-10-17 11:46:21 -06:00
Michael Miller e6d78345c4
Rename debug macro 2020-10-17 11:25:46 -06:00
Michael Miller 4974054de7
Some code to run a spec 2020-10-17 11:23:51 -06:00
Michael Miller 2cdee0716f
Bump version to 0.9.27 2020-10-01 18:25:29 -06:00
Michael Miller 9ac6121201
New stub syntax to support operator methods
Works like:
  stub :[], index : Int32 { 42 }

Addresses https://github.com/icy-arctic-fox/spectator/issues/14
2020-10-01 18:23:28 -06:00
Michael Miller f71a8ac6a3
Merge branch 'master' into example-api 2020-09-27 12:46:38 -06:00
Michael Miller 93fa6f6e72
Bump version to 0.9.26 2020-09-27 10:35:28 -06:00
Michael Miller e68697a212
Fix stubbed yielding method calling original instead of stub 2020-09-27 10:30:51 -06:00
Michael Miller 0970f02465
Yield instead of forwarding block
Forwarding the block like this captures it, which prevents yield from 
being used.
Addresses https://gitlab.com/arctic-fox/spectator/-/issues/54
2020-09-27 10:14:30 -06:00
Michael Miller ec6018bed4
Start reactivating runner 2020-09-27 09:10:27 -06:00
Michael Miller 579fcacfde
Move spec builder 2020-09-26 22:51:58 -06:00
Michael Miller d663e82c36
Improve internal error handling output 2020-09-26 22:25:53 -06:00
Michael Miller 543df88d39
Forward build method 2020-09-26 22:25:04 -06:00
Michael Miller 4567162459
Prevent defining an example or group in a test 2020-09-26 19:23:57 -06:00
Michael Miller 99a9d7960a
Formatting 2020-09-26 19:23:16 -06:00
Michael Miller 60795a371d
Reorganize 2020-09-26 19:15:34 -06:00
Michael Miller b8ba38152e
Cleanup example description handling 2020-09-26 19:14:08 -06:00
Michael Miller 1d359efcb0
Improve source line detection 2020-09-26 19:12:42 -06:00
Michael Miller 1ad41ac016
Cleanup group description handling 2020-09-26 19:11:52 -06:00
Michael Miller cccfa8ea1d
Formalize Spectator debug 2020-09-26 18:23:48 -06:00
Michael Miller f1ad476ae5
Trick to use one version string from shard.yml 2020-09-26 18:16:21 -06:00
Michael Miller f4a05502f9
Example names can't be a symbol 2020-09-26 18:14:59 -06:00
Michael Miller 96a7989815
Remove unreferenced code 2020-09-26 18:14:41 -06:00