Skip to content

Need some more docs on the front-page #68

Open
@mattiasw2

Description

@mattiasw2

I am missing a simple example. I have an existing demo project which is built on top elm-spa-example from https://github.com/rtfeldman/elm-spa-example, and I now wanted to add some of my samples.

Before I do anything with elm-very-samples, elm-test runs fine, and I get the output saying 9 tests succeeded.

I created a file src/MyExample1.elm with ( I changed add 3 3 --> 6 to --> 5 to get a failure).

module MyExample1 exposing (..)


{-| returns the sum of two int.

    -- You can write the expected result on the next line,

    add 41 1
    --> 42

    -- or on the same line.

    add 3 3 --> 5

-}
add : Int -> Int -> Int
add =
    (+)

Whenever I run elm-verify-examples, elm-verify-examples.json is overwritten, so my change "tests": [MyExample1] disappears directly.

elm-test never reports any errors.

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions