Fork me on GitHub
#calva
<
2022-09-08
>
James Pratt15:09:11

https://github.com/jointprob/jointprob-clerk/blob/master/test/dbinomial_test.clj do not show up in Calva until I have evaluated the test namespace file in the REPL. Is this the expected behaviour. I thought that Calva might automatically find the tests which are on my class path as defined in https://github.com/jointprob/jointprob-clerk/blob/master/deps.edn when I selected the “run all tests” option or from the vscode test explorer which I have enabled.

pez16:09:39

What is meant by that the ”tests do not show up in Calva”?

pez16:09:17

We probably have some things to document around this feature.

James Pratt16:09:41

After jacking in with deps.edn and selecting the test alias, I right click on any source file and do a “Run All Tests” and I get : clj꞉user꞉> ; Running all project tests… ; No tests found. 😱, ns: 0, vars: 0 The tests are still showing in the vscode test explorer from a previous time that I required the test namespace but when I try to run them I get: clj꞉user꞉> ; Running all project tests… ; No tests found. 😱, ns: 0, vars: 0 If I require the test namespace then I can run the tests by right click or through the test explorer.

James Pratt17:09:55

Thanks for all your work on this great extension @U0ETXRFEW

pez18:09:48

You are most welcome, sir!

pez18:09:53

I think what you describe is to be expected. Iirc, we populate the UI statically, but the test runner is dynamic.