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

add tasty integration notes #321

Merged
merged 4 commits into from
Sep 13, 2024
Merged

Conversation

mwotton
Copy link
Contributor

@mwotton mwotton commented Aug 30, 2024

  • Labeled the PR with patch, minor, or major to request a version bump when it's merged. (N/A, docs-only)
  • Updated the user manual in docs/.
  • Added integration / regression tests in tests/. (N/A, docs-only)

@mwotton
Copy link
Contributor Author

mwotton commented Aug 30, 2024

thanks to @erikryb for the patch #317

Comment on lines 26 to 28
If you add a new test file, the top level [tasty-discover](https://hackage.haskell.org/package/tasty-discover)
module will not have it set up as a dependency, so will not be reloaded until you restart the `ghciwatch` process. [tasty-autocollect](https://hackage.haskell.org/package/tasty-autocollect) relies on a compiler plugin and seems to avoid
this problem.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be true - if ghciwatch sees an edit to the file that uses tasty-discover (or any other file that is a dependency of that module), then the GHC preprocessor plugin will run and include the newly created test file. You shouldn't need to restart ghciwatch.

bubblewrap :: IO () -> IO ()
bubblewrap io = do
try io :: IO (Either SomeException ())
hSetBuffering stdout NoBuffering
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is tasty changing the buffering mode? I'm curious if the benefit here is to set the NoBuffering mode, or if the benefit is just that we're flushing the buffer

9999years
9999years previously approved these changes Sep 13, 2024
@9999years
Copy link
Member

OK, I rewrote this a little. I'm going to merge it now, let me know if you don't like any of my changes and we can sort it out. Also please try writing the top-level Spec.hs and see if that helps pick up new test files.

@9999years 9999years merged commit 93fbb67 into MercuryTechnologies:main Sep 13, 2024
38 checks passed
@9999years 9999years mentioned this pull request Sep 13, 2024
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.

3 participants