Skip to content

Restructure tests to allow for more than one test file #1075

Open
@asarkar

Description

@asarkar

The current test structure has two issues:

  1. Because the Tests.hs file is in the implicit main package, it's impossible for the student to add other test files. Complex solutions can be split into modules, and each module should be tested separately.
  2. Advanced/optional tests can be maintained in a separate module that the student can run, while the test runner may only run the core tests.

Both of these problems can be solved by using Hspec automatic spec discovery. Probably will also fix #955.

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