Packages for inline tests: Which one I should use?

I always like to put short tests along with the code, but the built-in Test does not support this. There are at least two packages: ReTest.jl and TestItems.jl can do this. If I understand correctly, TestItems.jl is developed for VScode, but maybe it can also be used without VScode. (I’m not a VScode user unfortunately) ReTest looks more general, but it seems not actively being maintained?

Any comments for these or similar packages? Thank you.

Yes, the test item framework can be used without VS Code, it was just originally motivated by the VS Code built-in test framework.

I am working very actively on it. I’m almost done with a much faster parallel test runner than what we have right now, and then I’m fairly optimistic that we can also integrate that with neotest into neovim.

5 Likes

Thanks for your work on this package. It would be great if it can be integrated to other common editors. However, I think being able to run the tests from command lines is also important.

If I have julia files in src/ with @testitem, how can I run those tests from command line? Sorry this may be a simple question but the doc looks not very clear to me about this point. Thank you.

Thank you. Is it possible to run tests in a single script, without the package structure?

No, it only works for tests inside packages.

Ok, thank you.