Skip to content

Can't have describe with same value as module name #501

Description

@yonigibbs

If you have a test module called Foo you can't use Foo as the string argument to describe. And, if you do, you get a misleading error message: "The test 'Foo' contains a child test of the same name. Let's rename them so we know which is which"

Sample code:

module Foo exposing (..)

import Expect exposing (Expectation)
import Test exposing (..)

suite : Test
suite =
    describe "Foo"
        [ test "t1" (\_ -> 1 + 1 |> Expect.equal 2)
        ]

This is also discussed in #493.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions