Lyricdev
GitHub

LYR-RES0015

a test module under both src/tests/ and tests/

error ยท spec 15-project

lyric test finds the same test module twice: as src/tests/<name>.lyr and as tests/<name>.lyr. Both are the module <package>.tests.<name>; the run stops before anything is compiled.

Explanation

Tests may live in src/tests/ or in the package's tests/ directory, and a file in either is the module <package>.tests.<path>. Two files at the same relative path would be one module twice.

Rename or merge one of the two files.

Example

$ ls src/tests tests
src/tests:
basic.lyr

tests:
basic.lyr
$ lyric5 test
error[LYR-RES0015]: the module 'app.tests.basic' lies under src/tests/ and under tests/
  = help: rename one of the two files