Skip to content
This repository was archived by the owner on Dec 12, 2017. It is now read-only.
This repository was archived by the owner on Dec 12, 2017. It is now read-only.

Use xunit2 for test discovery in-editor #88

Open
@citizenmatt

Description

@citizenmatt

Currently, the in-editor test discovery uses the xunit1 API, rather than the xunit2 API that allows for custom test discovery. To use the xunit2 API to discover tests:

  • Host an AppDomain that will be used for test discovery
  • The custom AppDomain to (shadow) load the xunit2 API from the output directory. What happens if the project has been cleaned?
  • Monitor the output directory for changes to any of the referenced assemblies (any of them might contain custom test discoverers), and tear down and reinitialise the AppDomain. This will have nasty implications for performance - reinitialising the AppDomain on each build. Can we get notified of the assemblies used for discovery, so we can only reset if the appropriate assemblies have changed?
  • Once the tests are discovered by xunit2, serialise them to the external test runner, so we don't have to discover them again

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