Skip to content

Match all *.test.hs tests in cabal-testsuite - #12502

Open
philderbeast wants to merge 5 commits into
haskell:masterfrom
cabalism:fix/test-detection
Open

philderbeast wants to merge 5 commits into
haskell:masterfrom
cabalism:fix/test-detection

Conversation

@philderbeast

@philderbeast philderbeast commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #12506 and avoids the manual synchronisation task noted in this code snippet:

-- NB: Keep this synchronized with partitionTests
isTestFile :: FilePath -> Bool
isTestFile f =
case takeExtensions f of
".test.hs" -> True
".multitest.hs" -> True
_ -> False

Many of the newly found tests are marked with expectBroken 12501.

I'll squash commits before applying the merge label if this pull request is approved.


  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary. (Yes - in cabal-testsuite/README.md)
  • Manual QA notes have been included.
  • Tests have been added. (Ask for help if you don’t know how to write them! Ask for an exemption if tests are too complex for too little coverage!)

Comment thread cabal-testsuite/src/Test/Cabal/Monad.hs Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect all .test.hs or .multitest.hs test scripts

2 participants