If you are running the tests from cabal, they will always be started in the directory with the .cabal file, and relative paths from there are fine. If that is not the case, could
you provide more details about how you are running the test?
Ian R. Sturdy
From: haskell-cafe-bounces@haskell.org [haskell-cafe-bounces@haskell.org] on behalf of Graham Berks [graham@fatlazycat.com]
Sent: Thursday, May 09, 2013 1:55 AM
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] Accessing resource files in tests
Hi, whats the recommended way to access a resource file for a test within cabal.
I have a text file containing data that I use in a test and want to be able to access it in a root path independent manner.
Thanks