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

newest version of lisp-unit does not work with slime #53

Open
jimka2001 opened this issue Aug 16, 2018 · 1 comment
Open

newest version of lisp-unit does not work with slime #53

jimka2001 opened this issue Aug 16, 2018 · 1 comment

Comments

@jimka2001
Copy link

There are a couple of problems of using slime with lisp unit.

  1. when a test fails and slime displays the stack trace, normally I can press 'v' on the stack trace line to navigate the editor to the line of code. This does not work if the point of breakage is inside a define-test. For some reason lisp-unit does not compile the code in a way which is accessible to slime.
  2. when I press C-c C-c on a test, the compiler does not check the code and present me with the compiler warnings/errors.
@jimka2001
Copy link
Author

My proposed fix is to profile the macro defun-test, similar to define-test.
The difference is that defun-test defines a function of the same name as the test.
This function compiles as ordinary code, visible to the compiler and the debugger.
The defun-test macro also defines a test via define-test which simply calls the function
of the same name. This way the test is also available to lisp-unit to do whatever it wants
with it.

jimka2001 added a commit to jimka2001/lisp-unit that referenced this issue Aug 16, 2018
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