[Haskell-cafe] Accessing resource files in tests

Sturdy, Ian sturdyi12 at mail.wlu.edu
Thu May 9 17:58:39 CEST 2013


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 at haskell.org [haskell-cafe-bounces at haskell.org] on behalf of Graham Berks [graham at fatlazycat.com]
Sent: Thursday, May 09, 2013 1:55 AM
To: haskell-cafe at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130509/4f6affc9/attachment.htm>


More information about the Haskell-Cafe mailing list