Skip to content

Ease testing of async code/event sequences #89

Description

@RuedigerMoeller

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions