elm-test icon indicating copy to clipboard operation
elm-test copied to clipboard

Elm-test doesn't run if root dir contains test/*.elm and auto-generated tests directories

Open tillydray opened this issue 6 years ago • 0 comments

Steps to Reproduce

  1. Create a 'test' directory in the project root directory
  2. Create an elm file in the test directory
  3. Follow the instructions here, namely, 1) npm install, 2) cd into project root, 3) run elm-test init, 4) copy all dependencies (unnecessary since elm-test init seems to have done this), 5) run elm-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.

tillydray avatar Jun 13 '18 14:06 tillydray