-
Notifications
You must be signed in to change notification settings - Fork 723
Open
Labels
cabal-testsuitecontinuous-integrationtype: enhancementtype: testingIssues about project test suitesIssues about project test suites
Description
Currently, cabal-testsuite (which seems to be the main way cabal the binary is tested) cannot be used as a stand-alone binary to run the tests.
The reasons seem to be:
- it requires sources that are part of the repository
- there is a generated module that depends on the current cached
LocalBuildInfoand hardcodes it into the binary, which then is used to reconstruct arguments toghcwhen compiling tests- it's not clear to me whether this is only required for the
Setup.hstests or thecabal-installbinary tests as well (e.g. there is--skip-setup-testsbut my observation is that this isn't really enough)
- it's not clear to me whether this is only required for the
The end goal I have is:
- build and test is strictly separated in CI and the test step does not involve building anything other than the tests
- tests can be run on the end users system (ultimately through GHCup)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cabal-testsuitecontinuous-integrationtype: enhancementtype: testingIssues about project test suitesIssues about project test suites