Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Question: Define common Diffs in a shared trait #458

@matankdr

Description

@matankdr

I would like to define common Diff instances to be used in multiple test suites.
However, when defined something like:

trait MyCommonDiffs {
  implicit val diffA: Diff[A] = ???
  implicit val diffB: Diff[B] = ???
}

and mixed in test suite:

class MyTest extends SpecificationWithJUnit with MyCommonDiffs {
...
}

The implicit Diff instances were not recognized by matchTo matcher.
Is there any best practices of how to summon implicit Diffs defined in a common trait/lib?

cc @galtoren

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