elm-test
elm-test copied to clipboard
Elm-test doesn't run if root dir contains test/*.elm and auto-generated tests directories
Steps to Reproduce
- Create a 'test' directory in the project root directory
- Create an elm file in the test directory
- Follow the instructions here, namely, 1)
npm install
, 2)cd
into project root, 3) runelm-test init
, 4) copy all dependencies (unnecessary sinceelm-test init
seems to have done this), 5) runelm-test
.
Expected Result
Tests run from whatever directory that contains an elm-package.json (in this example, 'tests' directory). Alternatively, a more helpful error message than the one below.
Actual Result
This output is generated
It looks like you're running elm-test from within your tests directory.
Please run elm-test from your project's root directory, where its elm-package.json lives!
How I found this
I discovered this because I have never used elm-test before, and began creating a test suite in a 'test' directory, then later saw the instructions to run elm-test init
. Therefore I had test/*.elm
and the auto-generated tests
directory.