Stephen Celis
c8a2e9490a
Test Store documentation updates ( #1129 )
2022-06-03 17:02:38 -04:00
Brandon Williams
24548d000d
Make TestStore.state public ( #1127 )
...
* Make TestStore.state public.
* wip
2022-06-03 08:21:34 -07:00
Stephen Celis
fb0d371e14
Use eraseToEffect mapping functions ( #1102 )
2022-05-27 10:41:57 -04:00
konomae
1ddfab852d
Fix minor typo ( #1109 )
2022-05-26 07:20:30 -07:00
Stephen Celis
dc9dd315ee
Cleanup ( #1107 )
2022-05-24 15:15:57 -04:00
Ryan Carver
f00277ac64
Tighten TestStore equality expectations ( #1091 )
...
* Add tests for TestStore equality assertions
* Change TestStore to require a state change if a closure is given
* Update a use of TestStore that described a change unnecessarily
* Remove unused mainQueue
2022-05-13 14:20:01 -04:00
Stephen Celis
f0098d8232
Add cancel overloads that take types ( #1078 )
...
* Add cancel overloads that take types
* wip
2022-05-03 21:00:24 -04:00
Brandon Williams
e0b7206202
Rename longLivingEffects to inFlightEffects. ( #1076 )
2022-05-03 11:07:36 -07:00
Brandon Williams
d1d71606a4
Update failure message for better order. ( #1025 )
2022-03-16 12:51:46 -07:00
Stephen Celis
2828dc44f6
Runtime Warning Finesse ( #1023 )
2022-03-15 16:21:13 -04:00
Stephen Celis
35ca967042
Don't use Store.scope or ViewStore.send in TestStore ( #921 )
2021-12-15 12:05:10 -05:00
Stephen Celis
25f943cf3c
Deprecate TestStore.assert ( #912 )
2021-12-07 21:10:02 -05:00
Andrey
86bcd083a1
Remove #if DEBUG/#endif surrounding Effect.failing ( #786 )
2021-09-13 09:40:02 -04:00
stephencelis
3c51885b98
Run swift-format
2021-08-25 19:56:19 +00:00
Stephen Celis
68664c144e
Use proportional diffing for TestStore failures ( #742 )
...
* Use proportional diffing for TestStore failures
* wip
* wip
2021-08-24 17:18:09 -04:00
Stephen Celis
575d7c0d59
Use Custom Dump ( #736 )
...
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* fix
* wip
* wip
* Model Tic-Tac-Toe board using proper type
* wip
* wip
* wip
* wip
Co-authored-by: Brandon Williams <mbrandonw@hey.com >
2021-08-22 22:45:27 -04:00
Stephen Celis
d5f174d4cd
Remove equatable constraint from TestStore.Action ( #633 )
...
* Remove equatable constraint from TestStore.Action
It occurred to me that this is only there for testing actions received
by the store, and now that we have our simpler DSL steps for testing, we
can test simple features without ever having to worry about conforming
the action type to be equatable, or at the very least delay this
requirement a bit longer.
* fix for 11.3
2021-07-06 18:53:44 -04:00
Stephen Celis
d30336ca13
Clean-up pass for DocC ( #599 )
2021-06-16 08:48:14 -05:00
Wendy Liga
1a8bccc62e
Support DocC Xcode 13 ( #591 )
...
* wip
* finish
* revert back code snippet identation to 5
* Update Sources/ComposableArchitecture/Effect.swift
Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com >
Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com >
2021-06-14 14:10:08 -04:00
Brandon Williams
4ea3dfed61
Work around Combine-related crash on iOS 13 ( #483 )
...
* Fix Combine crash for iOS 13.
* Clean up
* remove scheme
2021-04-08 08:18:36 -07:00
Stephen Celis
84b9a00438
Failing Effects ( #453 )
2021-03-22 13:54:52 -04:00
Stephen Celis
f1faccc3a2
Updated TestStore DSL ( #454 )
...
* Update TestStore to support imperative DSL
This gives us better XCTIssue-based error messaging since each line is
captured in the stack.
* Update examples to new testing DSL
* Fix
* Update README.md
* 11.3
* fix
* fix
2021-03-22 13:27:51 -04:00
Stephen Celis
e935270972
Tie long-living effect assertions to line of originating action ( #413 )
...
* Tie long-living effect assertions to line of originating action
* Fix
* fix
* More CI
2021-03-05 12:34:25 -05:00
Stephen Celis
f8608c7421
Breakpoint instead of assert in optional/forEach ( #296 )
...
* Breakpoint instead of assert in optional/forEach
* fix merge
Co-authored-by: Brandon Williams <mbw234@gmail.com >
Co-authored-by: Brandon Williams <mbrandonw@hey.com >
2021-03-02 13:03:15 -05:00
Jason Clark
e22776f7fd
Adds .sequence(Step) to StepType ( #387 )
2021-02-17 15:50:26 -05:00
Stephen Celis
636f3facdc
Document scope a bit more deeply ( #360 )
2021-02-01 14:46:35 -05:00
Stephen Celis
f6c73e65b8
Only include actions in TestStore debug output ( #342 )
2021-01-11 16:43:10 -05:00
Stephen Celis
fbd893407c
Update TestStore.swift ( #317 )
2020-10-30 17:25:24 -04:00
Stephen Celis
31f2556c7c
Test Store Ergonomics ( #285 )
...
* Test Store Ergonomics
* fix merge
* fix
2020-09-10 17:24:27 -04:00
Stephen Celis
3a63b83d30
Drive Test Store with a real Store ( #278 )
...
* Failing test
* Drive Test Store using Store
* Update TestStore.swift
* format
* Track state after send
* Use proper snapshot
* Fix?
* fix
2020-09-04 09:20:35 -04:00
Brandon Williams
0bf4b25a2e
Better error messages for uncompleted effects. ( #270 )
2020-08-27 10:48:22 -04:00
Brandon Williams
c2f64aa874
Update docs for Effect.timer and TestStore. ( #220 )
...
* Update docs for Effect.timer and TestStore.
* format
* update
* Update Sources/ComposableArchitecture/Effects/Timer.swift
Co-authored-by: Stephen Celis <stephen@stephencelis.com >
* Update Sources/ComposableArchitecture/TestSupport/TestStore.swift
Co-authored-by: Stephen Celis <stephen@stephencelis.com >
* wip
* Update TestStore.swift
Co-authored-by: Stephen Celis <stephen@stephencelis.com >
2020-07-09 10:25:06 -04:00
mbrandonw
0d2b624575
Run swift-format
2020-05-19 16:08:32 +00:00
Petr Sima
f6d292601e
added array-based version of TestStore.assert ( #115 )
2020-05-19 09:06:03 -07:00
Stephen Celis
9c339bf4ae
Add "run" function to Reducer ( #91 )
...
* Add "run" function to Reducer
* Doc fixes
2020-05-13 13:09:17 -04:00
mbrandonw
823f26bf70
Run swift-format
2020-05-11 23:43:32 +00:00
Brandon Williams
0b7978c432
Perform dlopen and dlsym just once. ( #75 )
...
* Perform dlopen and dlsym just once.
* wip
2020-05-11 16:42:06 -07:00
Stephen Celis
a429d9d3ef
Merge Test Support Module ( #71 )
...
* Merge Test Support Module
An attempt to fix #70 .
* Remove import
* Update README
* Assertion failure
* Cleanup
* Add NB
* Revert format change
* Update Sources/ComposableArchitecture/TestSupport/TestStore.swift
* TicTacToe fixes
* Hide test store in debug flag
Co-authored-by: Brandon Williams <mbw234@gmail.com >
2020-05-11 17:44:52 -04:00