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

run doctests as part of cabal test #6

Merged
merged 5 commits into from
Jan 13, 2023
Merged

run doctests as part of cabal test #6

merged 5 commits into from
Jan 13, 2023

Conversation

marcosh
Copy link
Owner

@marcosh marcosh commented Jan 11, 2023

Some notes:

  • I had to add the --write-ghc-environment-files=always option to cabal test to please doctest-parallel (see https://github.com/martijnbastiaan/doctest-parallel/blob/main/example/README.md#cabalproject). I also had to gitignore the output of that option
  • I had to move the --color option to the .hspec file because otherwise the option would have been passed also to doctest-parallel which does not understand it
  • Moved singletons-base and text out of global dependencies since they are not used by the crm-doctets stanza
  • I found out that you can leave doctests inside multi-line comments

@marcosh
Copy link
Owner Author

marcosh commented Jan 11, 2023

closes #4

src/CRM/Graph.hs Outdated Show resolved Hide resolved
itsadrake
itsadrake previously approved these changes Jan 12, 2023
@marcosh marcosh merged commit e238243 into main Jan 13, 2023
@marcosh marcosh deleted the doctests branch January 13, 2023 15:19
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

Successfully merging this pull request may close these issues.

2 participants