Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5am unable to find any tests under Alive (vs-code extension). #200

Open
czaky opened this issue Jun 17, 2024 · 0 comments
Open

5am unable to find any tests under Alive (vs-code extension). #200

czaky opened this issue Jun 17, 2024 · 0 comments

Comments

@czaky
Copy link

czaky commented Jun 17, 2024

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?

(I will also open an issue with 5am for visibility. Sorry for cross-posting.)

Symptom

From Alive REPL:

> (asdf:test-system :puzzles/test)
 Didn't run anything...huh?

> (5am:run-all-tests)
 Didn't run anything...huh?

Crosscheck

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 file for completness

(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)))

Installation Steps

The installation follows the steps:

  • Install roswell
  • Install alive
  • Configure alive

Roswell

There is no installer for roswell in the debian repository.
The easiest way is to compile from scratch using git sources.

The script below uses sbcl-bin/2.4.2 in order to use the jupyter kernel.

# 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

Alive

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)"
  ],
}
@czaky czaky changed the title 5am unable find any tests under Alive (vs-code extension). 5am unable to find any tests under Alive (vs-code extension). Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant