Giter Club home page Giter Club logo

lobo's People

Contributors

benansell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lobo's Issues

Why not contribute upstream?

Hi there!

This is a cool library, with some cool features. However, the defacto test runner will be shipped under elm-test. It would be awesome for the entire Elm community to add any features you thought were missing to elm-test, rather than go it alone where less people get to see some of the things you have. Come chat to us on #testing on the Elm Slack channel, and we can discuss!

Cheers,
eeue56

elm-test 4.0.0 dropped filter function

From your README:

filter -> instead use skip

Elm-test 4.0.0 removed the filter function and replaced it withskip. You will want to update the README accordingly.

Run tests without an internet connection required

First, fantastic tool! I love it.

One sticky point for me - I often code on the bus, where I have no wifi. I noticed today that lobo does some kind of package check before running any tests, which results in an error, meaning, I can't run my tests if I'm offline. I know elm-test node runner works offline, so I'm hoping you can make lobo work offline too. Maybe give a warning, but still run the tests.

Here is the specific output:

-----------------------------------[ BUILD ]------------------------------------
Error: The following HTTP request failed.
<http://package.elm-lang.org/all-packages?elm-package-version=0.18&since=2017-03-03%2001%3A17%3A11.4254%20UTC>

FailedConnectionException2 "package.elm-lang.org" 80 False getAddrInfo: does not exist (nodename nor servname provided, or not known)

----------------------------------[ WAITING ]-----------------------------------

Thanks!!

Support to find all Tests?

I've been using elm-test and the node runner while we took care of a few lobo issues. I do prefer lobo for 2 main reasons:

  1. it will watch even if the build fails on the initial run (elm-test is working on this)
  2. it will manage test deps while running/watching while elm-test requires a separate command

One thing I have come to depend on elm-test for though, is the fact that it will find all functions with the Test type. It will warn if a top level module has a function with that type and doesn't expose it. It will also automatically run them nested in a describe named after the module's name. It's been nice to break up my tests without having to roll them up into the main Test module. Is this sort of behavior something you would consider adding to lobo?

p.s. Thank you for your work on lobo.

Lobo crashes when testing programs that use Navigation & UrlParser

I have a test that is testing that my json decoders work correctly, but am having some issues with case statements in my tests. For example:

test "json parser" <|
    \() ->
        case parseAllTheThings of
            Ok _ ->
                Expect.pass

            Err e ->
                Expect.fail e

I then went and broke the json, but I didn’t get any failures. So I tried this:

test "basic case statement" <|
    \() ->
        case 1 of
            1 ->
                Expect.fail "should fail"

            _ ->
                Expect.fail "would also fail"

Neither of those tests fail with elm-test or the lobo test extra frameworks. Once I switched to the elm-test cli runner the tests fail as expected.

Let me know if you need any other info and thank you for your hard work.

Support of elm 0.19

I migrated my app to Elm 0.19
When launching my test with Lobo, I have this message:

Unable to find elm-package.json in the current directory

It's not relevant with ELM 0.19.

Prompt does not accept default argument

Hello and thanks for creating lobo.
When adding lobo to an existing project with tests, the CLI prompt doesn't accept the default argument

The source-directories of the test elm-package.json needs to be updated to contain:
../node_modules/lobo/runner
../node_modules/lobo/plugin/elm-test-extra

May I add them to elm-package.json for you? (Y/n)

After this prompt, I expected that if I press the Enter key, the default value of Y should be chosen, rather than having me manually input the Y.
However, that is not currently implemented.

Collect output for each test

When tests fail, it would be great to see the output for the test printed out in the summary. Perhaps an option like --showTodo and --showSkip (which are why we moved to lobo).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.