Lyricdev
GitHub

LYR-MIG0108

tests compiled apart

hint · spec 14-cli

A note of lyric fix --from-4: the lyric.json names a testRoot, whose files Lyric 4 compiled apart from the program. Lyric 5 runs a package's tests/ with lyric test; each test is an @Test function.

Explanation

Lyric 5 compiles the tests of a package with it: @Test functions in src/ and in tests/, run by lyric test. The migration does not move them.

Move the test files to tests/ and make each test an @Test function.

Example

by hand[LYR-MIG0108] lyric.json:1:1: the tests under 'tests' are compiled apart in Lyric 4; Lyric 5 runs a package's tests/ with lyric test — move them to tests/ and make each test an @Test function