Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asarkar opened this issue Jul 17, 2022 · 0 comments
Open

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

asarkar opened this issue Jul 17, 2022 · 0 comments

Comments

@asarkar
Copy link

asarkar commented Jul 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant