it imports
Main
, which means that everything inMain
and everythingMain
imports will be searched for tests. So any test in any module will be run.
No, that’s not how elm-test works. It only looks for exposed Test
values in the CLI args (which defaults to tests/
– a directory arg means “all .elm files deeply within this folder”). I just tried it just to be 100% sure.
So you must be running something like elm-test tests/ src/
, or you’re not running as many tests as you think you are. Or maybe you do something like this?
module SomeTest exposing (..)
import Expect
import Main
import Test exposing (..)
tests : Test
tests =
describe "SomeTest"
[ Main.tests
, test "something else" whatever
]