Git Product home page Git Product logo

Comments (6)

TimoKramer avatar TimoKramer commented on June 12, 2024

Hey @aldosolorzano,
good catch. The :extra-path for :test-alias is not included. I believe because kaocha has this as a default value and it should not be needed when using kaocha as test-runner. It surely is not hurting adding the :extra-path to the :test-alias.

Kaocha-doc: https://github.com/lambdaisland/kaocha/blob/main/doc/03_configuration.md

from bob.

lispyclouds avatar lispyclouds commented on June 12, 2024

Yeah but I think the use case mentioned here is to have the test path in the usual repl mode as well which wouldn't use the :test alias. Maybe simply documenting that people should start their repls with an extra -Sdeps mentioning the test paths suffices than adding anything to the deps.edn?
Otherwise we need to have another alias :dev which would duplicate the deps just for adding the extra path?

from bob.

TimoKramer avatar TimoKramer commented on June 12, 2024

I am starting my repl with clj -M:test:repl and it works somehow.

from bob.

aldosolorzano avatar aldosolorzano commented on June 12, 2024

start their repls with an extra -Sdeps mentioning the test paths suffices than adding anything to the deps.edn

How would you do that? @lispyclouds I tried what @TimoKramer did and it's not working for me, I'm doing it inside the runner

I work with emacs+cider using nrepl so what it's wokring for me it's

:repl {:extra-paths ["test"]
                  :extra-deps {nrepl/nrepl {:mvn/version "0.8.3"}
                               cider/cider-nrepl {:mvn/version "0.30.0"}
                               org.clojure/test.check {:mvn/version "1.1.1"}
                               com.github.seancorfield/next.jdbc {:mvn/version "1.3.862"}}
                  :main-opts  ["-m" "nrepl.cmdline"
                               "--middleware" "[cider.nrepl/cider-middleware]"]}

But we have the duplicated extra-deps.
question: how do I know in which port a repl is running?

from bob.

lispyclouds avatar lispyclouds commented on June 12, 2024

@aldosolorzano Added a new task repl to all the bb.edns in the services in 0429b32

It should start an nREPL in a port with all the right paths and deps. Try that out, lemme know if that's any improvement!

from bob.

lispyclouds avatar lispyclouds commented on June 12, 2024

This seems to be addressed, do reopen otherwise!

from bob.

Related Issues (20)

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.