<div dir="ltr">Hi Robert,<div><br></div><div>The reason for the "Test suite not yet implemented" message is that this is the default behaviour of the test suite that comes with "new-template":</div><div><br></div><div><div>$ cat test/Spec.hs </div><div>main :: IO ()</div><div>main = putStrLn "Test suite not yet implemented"</div></div><div><br></div><div>BTW, stack 0.1.8.0 is fairly outdated by now, so try to run "stack upgrade".</div><div><br></div><div>Cheers,</div><div>Simon</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-19 17:54 GMT+01:00 Robert Weisser <span dir="ltr"><<a href="mailto:Robert.Weisser@gmx.com" target="_blank">Robert.Weisser@gmx.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recently installed stack via Haskell for Mac OS X<br>
(<a href="https://ghcformacosx.github.io/" rel="noreferrer" target="_blank">https://ghcformacosx.github.io/</a>), which gave me stack 0.1.8.0 x86_64 and ghc<br>
7.10.2.<br>
<br>
Following the User Guide (<a href="http://docs.haskellstack.org/en/stable/GUIDE.html" rel="noreferrer" target="_blank">http://docs.haskellstack.org/en/stable/GUIDE.html</a>),<br>
I tried to create the first example (hello world, naturally). Everything went<br>
according to plan until I entered 'stack test', which failed. The output was<br>
supposed to be, 'Test suite not yet implemented.' I tried to find information<br>
online, but was unsuccessful. I play with Haskell for fun and know nothing<br>
about cabal, so I don't know if it is a cabal issue.<br>
<br>
The error message includes 'helloworld-test: executable not found'.<br>
helloworld-test is indeed missing. I searched for it using find:<br>
<br>
find . -name '*test'<br>
<br>
Here is the terminal session, followed by the contents of the generated<br>
helloworld.cabal file (with some user info removed):<br>
<br>
$ stack new helloworld new-template<br>
Downloading template "new-template" to create project "helloworld" in helloworld/ ...<br>
Writing default config file to: /Users/rpw/self/haskell/stack/user_guide/helloworld/stack.yaml<br>
Basing on cabal files:<br>
- /Users/rpw/self/haskell/stack/user_guide/helloworld/helloworld.cabal<br>
<br>
Checking against build plan lts-3.13<br>
Selected resolver: lts-3.13<br>
Wrote project config to: /Users/rpw/self/haskell/stack/user_guide/helloworld/stack.yaml<br>
<br>
$ cd helloworld/<br>
<br>
$ stack setup<br>
stack will use the GHC on your PATH<br>
For more information on paths, see 'stack path' and 'stack exec env'<br>
To use this GHC and packages outside of a project, consider using:<br>
stack ghc, stack ghci, stack runghc, or stack exec<br>
<br>
$ stack build<br>
helloworld-0.1.0.0: configure<br>
Configuring helloworld-0.1.0.0...<br>
helloworld-0.1.0.0: build<br>
Preprocessing library helloworld-0.1.0.0...<br>
[1 of 1] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Lib.o )<br>
In-place registering helloworld-0.1.0.0...<br>
Preprocessing executable 'helloworld-exe' for helloworld-0.1.0.0...<br>
[1 of 1] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/helloworld-exe/helloworld-exe-tmp/Main.o )<br>
Linking .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/helloworld-exe/helloworld-exe ...<br>
helloworld-0.1.0.0: copy/register<br>
Installing library in<br>
/Users/rpw/self/haskell/stack/user_guide/helloworld/.stack-work/install/x86_64-osx/lts-3.13/7.10.2/lib/x86_64-osx-ghc-7.10.2/helloworld-0.1.0.0-6urpPe0MO7OHasGCFSyIAT<br>
Installing executable(s) in<br>
/Users/rpw/self/haskell/stack/user_guide/helloworld/.stack-work/install/x86_64-osx/lts-3.13/7.10.2/bin<br>
Registering helloworld-0.1.0.0...<br>
<br>
$ stack exec helloworld-exe<br>
someFunc<br>
<br>
$ stack test<br>
Test suite helloworld-test executable not found for helloworld<br>
Test suite failure for package helloworld-0.1.0.0<br>
helloworld-test: executable not found<br>
Logs printed to console<br>
<br>
$ cat helloworld.cabal<br>
name: helloworld<br>
version: 0.1.0.0<br>
synopsis: Initial project template from stack<br>
description: Please see README.md<br>
homepage: ...<br>
license: BSD3<br>
license-file: LICENSE<br>
author: ...<br>
maintainer: ...<br>
copyright: None<br>
category: Example<br>
build-type: Simple<br>
-- extra-source-files:<br>
cabal-version: >=1.10<br>
<br>
library<br>
hs-source-dirs: src<br>
exposed-modules: Lib<br>
build-depends: base >= 4.7 && < 5<br>
default-language: Haskell2010<br>
<br>
executable helloworld-exe<br>
hs-source-dirs: app<br>
main-is: Main.hs<br>
ghc-options: -threaded -rtsopts -with-rtsopts=-N<br>
build-depends: base<br>
, helloworld<br>
default-language: Haskell2010<br>
<br>
test-suite helloworld-test<br>
type: exitcode-stdio-1.0<br>
hs-source-dirs: test<br>
main-is: Spec.hs<br>
build-depends: base<br>
, helloworld<br>
ghc-options: -threaded -rtsopts -with-rtsopts=-N<br>
default-language: Haskell2010<br>
<br>
source-repository head<br>
type: git<br>
location: ...<br>
$<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Robert Weisser<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</font></span></blockquote></div><br></div>