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 <pranit.bauva@gmail.com>
parent 2511ab4c
name: NewConfigure
version: 0.1.0.0
author: Foo Bar
maintainer: cabal-dev@haskell.org
build-type: Simple
cabal-version: >=1.10
library
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-0.1.0.0 (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