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

@leana8959 leana8959 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me :)


I would like to point out that adding the AI-assisted label after the PR is reviewed defeats the purpose of having such a label.

@mergify mergify Bot added the 1️⃣ more approval needed Set by Mergify: has one of the two required approvals label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants