Existing test frameworks (afaik) are basically single threaded / require manual blocking and synchronization in order to test async code/libs.
What's needed is kind of matching event patterns like
subscribe(someStreamOrPublisher)
.require( ev -> ev.type() == 'START' )
.many( ev -> ev instanceof MktEvent || ev instanceof InstrAddedEvent )
.require( ev -> ev = CLOSED )
.await(); //blocker
(pseudo code, hope you get the idea). Ofc this only one of many concurrency/async patterns
Not that I have kind of a concept, however there is a gap in that area (async/mthreading) with most existing test frameworks.
Note: R. Kuhn has also investigated in that area, however it seems just a fragment
https://github.com/rkuhn/asynctest
Existing test frameworks (afaik) are basically single threaded / require manual blocking and synchronization in order to test async code/libs.
What's needed is kind of matching event patterns like
(pseudo code, hope you get the idea). Ofc this only one of many concurrency/async patterns
Not that I have kind of a concept, however there is a gap in that area (async/mthreading) with most existing test frameworks.
Note: R. Kuhn has also investigated in that area, however it seems just a fragment
https://github.com/rkuhn/asynctest