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

cider-test-run-loaded-tests not running newly loaded tests after changing REPL namespace #3611

Open
jasalt opened this issue Jan 23, 2024 · 1 comment

Comments

@jasalt
Copy link

jasalt commented Jan 23, 2024

I'm trying to keep Cider REPL process alive while switching from a project to a library it uses to make some changes there, but face some problems running library file's tests (written in same file as code).

I find that cider-test-run-loaded-tests loses track of what tests are loaded for library file after I switch REPL namespace from project ns to a library ns with cider-repl-set-ns and load the library file including it's deftests with cider-load-buffer.

After that running cider-test-run-loaded-tests gives "No assertions (or no tests) were run. Did you forget to use ‘is’ in your tests?", while I can still run specific deftest's in the library file with cider-test-run-test or use (run-tests *ns*).

Everything works as expected after restarting Cider from the library ns and loading buffer again.

@vemv
Copy link
Member

vemv commented Jan 23, 2024

Thanks! This looks like a bug, since there are separate cider-test-run-loaded-tests and cider-test-run-project-tests functions.

The underlying middleware is flexible enough to run a variety of things.

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

2 participants