8000 ZIO Test: Make specs more compositional · Issue #5093 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ZIO Test: Make specs more compositional #5093
Closed
@jdegoes

Description

@jdegoes

Depends on #5092 .

The goal of this ticket is to support:

object MySpec1 extends DefaultRunnableSpec ...

object MySpec2 extends DefaultRunnableSpec...

object MySpec3 extends DefaultRunnableSpec {
  def spec = MySpec1 + MySpec2
}

In order to support this, we would probably have to change Spec from a case class to a trait with a fold method that encodes the subtypes of SpecCase.

Then DefaultRunnableSpec and friends could implement the abstract methods of the Spec trait and get operators like + for free.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0