rove icon indicating copy to clipboard operation
rove copied to clipboard

How to run Rove from the command line ? "component … not found"

Open vindarel opened this issue 3 years ago • 7 comments

Hi,

I tried to run rove from the command line from your jsonrpc project that is show in the README. I only get the error

$ rove tests/request-response.lisp                    [master] 
Unhandled ASDF/FIND-COMPONENT:MISSING-COMPONENT in thread #<SB-THREAD:THREAD "main thread" RUNNING
                                                             {10005385B3}>:
  Component "jsonrpc/tests/request-response" not found

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10005385B3}>
0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK Component "jsonrpc/tests/request-response" not found #<unused argument> :QUIT T)
1: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* Component "jsonrpc/tests/request-response" not found)

The jsonrpc test definition: https://github.com/fukamachi/jsonrpc/blob/master/tests/request-response.lisp

Is there some Roswell code to include at the top of a test file, or is it supposed to work out of the box?

thanks

$ ros --version                                       [master] 
roswell 20.06.14.107(NO-GIT-REVISION)

$ ros update quicklisp                                [master] 
Downloading http://beta.quicklisp.org/client/quicklisp.sexp
[##########################################################################]100%
Updating client from version 2019-02-16 to version 2020-01-04.
Downloading http://beta.quicklisp.org/client/2020-01-04/quicklisp.tar.gz
##########################################################################
New Quicklisp client installed. It will take effect on restart.
1 dist to check.
Downloading http://beta.quicklisp.org/dist/quicklisp.txt
[##########################################################################]100%
Downloading http://beta.quicklisp.org/dist/quicklisp/2020-07-15/releases.txt
[…]

$ rm ~/.roswell/bin/rove
$ ros install rove

vindarel avatar Sep 14 '20 16:09 vindarel

I'm getting this same error when running tests from the command line. Is there a missing step?

benjamincassidy avatar Jan 02 '21 19:01 benjamincassidy

If helpful, this (very simple) library uses rove with pretty much full coverage, and the readme describes how to run the test suite in various ways.

https://github.com/jonatack/cl-kraken

jonatack avatar Jan 02 '21 19:01 jonatack

Thank you @jonatack. When I download your project and run rove cl-kraken.asd on the command line, I get the same error as above.

benjamincassidy avatar Jan 02 '21 19:01 benjamincassidy

@benjamincassidy I run the tests using any of these incantations from the command line: https://github.com/jonatack/cl-kraken#tests (with this asd file: https://github.com/jonatack/cl-kraken/blob/master/cl-kraken.asd)

jonatack avatar Jan 02 '21 20:01 jonatack

I run the tests using any of these incantations from the command line

@jonatack You mean, these incantations are for the Lisp REPL. You don't use rove on the terminal, the utility that we install with Roswell, do you?

vindarel avatar Sep 14 '21 16:09 vindarel

Oh, sorry no, I've never been able to install Roswell (on Debian). Haven't tried in the past year, however.

jonatack avatar Sep 14 '21 17:09 jonatack

Having the same problem with my cl-project generated code, which uses rove. @fukamachi any help?

lockie avatar Mar 16 '23 09:03 lockie