Open czaky opened 3 months ago
5am runner does not find any tests when run in the Alive (vs-code) environment. Any ideas or pointers where we should look to figure this out?
(This issue was also cross-posted to: https://github.com/nobody-famous/alive/issues/200 for visibility.)
From Alive REPL:
> (asdf:test-system :puzzles/test) Didn't run anything...huh? > (5am:run-all-tests) Didn't run anything...huh?
This works with emacs and sbcl or from the command-line.
ros run --noinform --non-interactive -e "(require :asdf)" \ -e "(progn (load \"puzzles.asd\") (uiop:quit (if (asdf:test-system :puzzles/test) 0 -1)))" Running test suite PUZZLES Running test TWICE-LINEAR ... Did 3 checks. Pass: 3 (100%) Skip: 0 ( 0%) Fail: 0 ( 0%)
(asdf:defsystem :puzzles :description "Puzzle Solutions." :licence "MIT" :serial t :components ((:file "math")) :in-order-to ((asdf:test-op (asdf:test-op :puzzles/test)))) (asdf:defsystem :puzzles/test :description "Puzzles test suite." :licence "MIT" :depends-on (:puzzles :fiveam) :components ((:file "test-math")) :perform (asdf:test-op (o c) (uiop:symbol-call :5am :run! :puzzles)))
The installation follows the steps:
roswell
alive
There is no installer for roswell in the debian repository. The easiest way is to compile from scratch using git sources.
git
The script below uses sbcl-bin/2.4.2 in order to use the jupyter kernel.
sbcl-bin/2.4.2
# Create git installation directory. cd mkdir -p git cd git # Install prerequisites sudo apt-get -y install git build-essential automake libcurl4-openssl-dev git clone -b release https://github.com/roswell/roswell.git cd roswell sh bootstrap ./configure make sudo make install # Install environment under $USER/roswell ros setup # Select a working SBCL. ros install sbcl-bin/2.4.2 ros use sbcl-bin/2.4.2 # Add roswell to the PATH echo 'export PATH=$PATH:~/.roswell/bin' >> ~/.bashrc
Install alive-lsp as a local quicklisp project.
cd ~/.roswell/lisp/quicklisp/local-projects git clone https://github.com/nobody-famous/alive-lsp.git
Test the alive server using:
ros run --eval '(require :asdf)' --eval '(asdf:load-system :alive-lsp)' --eval '(alive/server:start)'
Add the proper alive start command into the settings.json:
{ "alive.lsp.startCommand": [ "ros", "run", "--eval", "(require :asdf)", "--eval", "(asdf:load-system :alive-lsp)", "--eval", "(alive/server:start)" ], }
Summary
5am runner does not find any tests when run in the Alive (vs-code) environment. Any ideas or pointers where we should look to figure this out?
(This issue was also cross-posted to: https://github.com/nobody-famous/alive/issues/200 for visibility.)
Symptom
From Alive REPL:
Crosscheck
This works with emacs and sbcl or from the command-line.
ASDF file for completness
Installation Steps
The installation follows the steps:
roswell
alive
alive
Roswell
There is no installer for
roswell
in the debian repository. The easiest way is to compile from scratch usinggit
sources.The script below uses
sbcl-bin/2.4.2
in order to use the jupyter kernel.Alive
Install alive-lsp as a local quicklisp project.
Test the alive server using:
Add the proper alive start command into the settings.json: