-
Notifications
You must be signed in to change notification settings - Fork 701
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 test-wrapper option to wrap test execution #5995
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bb48e46
Add test-wrapper option to wrap test execution
angerman 5fc435c
Update Setup.hs
angerman 166c294
Update ProjectPlanning.hs
angerman 07ff963
More testWrapper.
angerman 633bf42
Fix compilation error for cabal-install package
JoshMeredith db8745c
Expose test-wrapper option through the cabal-install package client
JoshMeredith 3273cd6
Fix test suite compile errors
JoshMeredith 3cacbe7
Add filterTestFlags
JoshMeredith ce1b49e
Documentation and changelog
JoshMeredith 58ce473
Fix unnecessary export/dodgy import
JoshMeredith 7322ecc
Clarify documentation
JoshMeredith a9471cd
Fix round trip print/parse tests
JoshMeredith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1884,6 +1884,7 @@ elaborateInstallPlan verbosity platform compiler compilerprogdb pkgConfigDB | |
elabTestHumanLog = perPkgOptionMaybe pkgid packageConfigTestHumanLog | ||
elabTestShowDetails = perPkgOptionMaybe pkgid packageConfigTestShowDetails | ||
elabTestKeepTix = perPkgOptionFlag pkgid False packageConfigTestKeepTix | ||
elabTestWrapper = perPkgOptionFlag pkgid False packageConfigTestWrapper | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you mean |
||
elabTestFailWhenNoTestSuites = perPkgOptionFlag pkgid False packageConfigTestFailWhenNoTestSuites | ||
elabTestTestOptions = perPkgOptionList pkgid packageConfigTestTestOptions | ||
|
||
|
@@ -3440,6 +3441,7 @@ setupHsTestFlags (ElaboratedConfiguredPackage{..}) _ verbosity builddir = Cabal. | |
, testHumanLog = maybe mempty toFlag elabTestHumanLog | ||
, testShowDetails = maybe (Flag Cabal.Always) toFlag elabTestShowDetails | ||
, testKeepTix = toFlag elabTestKeepTix | ||
, testWrapper = mempty | ||
, testFailWhenNoTestSuites = toFlag elabTestFailWhenNoTestSuites | ||
, testOptions = elabTestTestOptions | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,6 +294,7 @@ data ElaboratedConfiguredPackage | |
elabTestHumanLog :: Maybe PathTemplate, | ||
elabTestShowDetails :: Maybe TestShowDetails, | ||
elabTestKeepTix :: Bool, | ||
elabTestWrapper :: Maybe FilePath | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing trailing comma means this doesn't compile. |
||
elabTestFailWhenNoTestSuites :: Bool, | ||
elabTestTestOptions :: [PathTemplate], | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add this to at least
Distribution.Cabal.Setup.testOptions
if you want it to actually make it through to a user-facing option.