HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulecabal-install-3.18.1.0Haskell2010

Distribution.Client.CmdTest

cabal-install CLI command: test

Contents
  1. The test CLI and action
  2. Internals exposed for testing
Synopsis

The test CLI and action

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