Commit ceb466b2 authored by Pranit Bauva's avatar Pranit Bauva
Browse files

test: add test for NewConfigure

Specifically test whether the old config file (cabal.project.old) is
displayed on stdout before it gets overwritten with `cabal new-configure`.
Signed-off-by: Pranit Bauva's avatarPranit Bauva <>
parent 2511ab4c
name: NewConfigure
author: Foo Bar
build-type: Simple
cabal-version: >=1.10
exposed-modules: Foo
build-depends: base
default-language: Haskell2010
# cabal new-configure
'cabal.project.local' file already exists. Now overwriting it.
Resolving dependencies...
In order, the following would be built:
- NewConfigure- (lib) (first run)
import Test.Cabal.Prelude
main = cabalTest $
withSourceCopy $ do
r <- cabal' "new-configure" []
assertOutputContains "Now overwriting it" r
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment