Skip to content

Test scheduler interface improvement #3231

@kwonoj

Description

@kwonoj

I'm writing it as an issue based on discussions we had on core meeting -

Testscheduler included in core is working as expected, but also lacks of some ergonomics around setups and assertions - reason there are couple of variant for 3rd party assertion suite out there. I'd like to self-advertise to my own implementation to adapt into current schedules, which satisfies most of complaints around current testscheduler:

  • frametime adjustment (1 by default, customizable)
  • test framework agnostic
  • long-timeframe support via extended marble syntax
  • fine-grained time travelling (advanceTo interface as similar v4)
  • visual friendly assertion helper function

It could be either make pkg itself as upstream core (once we have monorepo) or either cherrypicking necessary implementation only, or something else - notable thing is core (or separate monorepo-pkg from core) provides de-facto OOTO solution for testing to anyone can easily use.

My current implementation is available at https://github.com/kwonoj/rx-sandbox currently.

/cc @benlesh
(and also @jayphelps , heard you are looking for something similar? not sure but pinging)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions