Giter Site home page Giter Site logo

Comments (15)

dancek avatar dancek commented on July 20, 2024 1

A better workaround (imho) is to run lein repl, which fires up a JVM with all the dependencies loaded. Then run tests like this:

(use 'midje.repl)
(load-facts 'iloveponies.tests.structured-data 'structured-data)

Obviously change the correct namespaces, eg. replace each structured-data occurence with training-day. After that just press the up arrow to get the same input line again (or use plain (load-facts), which assumes the same namespaces as previous call had).

Yes, still a PITA, but much faster than running lein midje.

from training-day.

freeman avatar freeman commented on July 20, 2024

Same issue here ...

from training-day.

koss avatar koss commented on July 20, 2024

I got it to work by copying the tests from the test project into the local test file. Cool. Onward to learn Clojure!

from training-day.

qmacro avatar qmacro commented on July 20, 2024

FWIW, I am also experiencing this issue, and worked around it using the same approach as @koss but surely it was designed like this (tests abstracted away) deliberately, i.e. Should Work (tm)?

from training-day.

echox avatar echox commented on July 20, 2024

exactly the same issue here :-/
are there any other workarounds?

from training-day.

joao-sallaberry avatar joao-sallaberry commented on July 20, 2024

Same here.

from training-day.

wilzbach avatar wilzbach commented on July 20, 2024

+1
(I would love to see a proper solution in the guidelines)

from training-day.

notno avatar notno commented on July 20, 2024

+1

from training-day.

ahoffer avatar ahoffer commented on July 20, 2024

+1

from training-day.

nashamri avatar nashamri commented on July 20, 2024

+1

from training-day.

mikaelsn avatar mikaelsn commented on July 20, 2024

+1

from training-day.

Juholei avatar Juholei commented on July 20, 2024

+1

from training-day.

Maksym-L avatar Maksym-L commented on July 20, 2024

+1

from training-day.

christiaan-janssen avatar christiaan-janssen commented on July 20, 2024

+1

from training-day.

dancek avatar dancek commented on July 20, 2024

It's also useful to call load-facts with a lower loglevel, so you don't get many screenfuls of failures when starting out.

user=> (load-facts -2)
{:failures 38}
user=> (load-facts -2)
{:failures 36}

from training-day.

Related Issues (4)

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.