-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create folder structure appropriate for testing #3
Comments
On a clear install of this program using stack, I wrote a test module in T/RegAllocTest.hs and executed ghci T/RegAllocTest.hs from both the root folder and from the T/ folder. This resulted in the following error message:
|
I was able to fix the importation of modules located in src/ to files located in T/. This was fixed by adding a .ghci file in the root folder containing the text
Is this the correct way to handle this or should stack somehow be used? |
The right way is to use Cabal's support for test suites. I'll create a skeleton. (I'll also do something more interesting soon.) |
Troels: Can you make a folder structure which is appropriate for testing? I would like to run unit tests on various function in the different modules located in src/ but when I create test modules in T/, I cannot get those modules to import the modules found in src/
The text was updated successfully, but these errors were encountered: