HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-3.12.1.0Haskell2010

Distribution.Client.CmdTest

cabal-install CLI command: test

  • 7 values

The test CLI and action

2 declarations
valuetestAction :: NixStyleFlags () -> [String] -> GlobalFlags -> IO ()
#

The test command is very much like build. It brings the install plan up to date, selects that part of the plan needed by the given or implicit test target(s) and then executes the plan.

Compared to build the difference is that there's also test targets which are ephemeral.

For more details on how this works, see the module Distribution.Client.ProjectOrchestration

Internals exposed for testing

5 declarations