jorgenschaefer / emacs-buttercup

Behavior-Driven Emacs Lisp Testing
GNU General Public License v3.0
360 stars 44 forks source link

How to properly run all tests in a current buffer without using markdown with list code blocks? #229

Closed EmilyGraceSeville7cf closed 1 year ago

EmilyGraceSeville7cf commented 1 year ago

Writing unit tests inside markdown code blocks weird because there is no syntax highlighting for lisp constructs inside code blocks and no completion. Maybe I don't understand smth but I've never seen such unit tests in Python, C#, JS.

snogge commented 1 year ago

The buttercup documentation is written in markdown with example tests in embedded code blocks. The markdown function runs all the tests in those blocks. So they are mostly a convenience for the maintainer.

Buttercup is not very good at running tests interactively, it's geared toward CI use. There is a function to run tests at point, but not the current buffer. I have not tried to write one, but I think it might be complicated to get right. You are probably better off using a makefile and M-x compile.

snogge commented 1 year ago

Also have look at #221.

snogge commented 1 year ago

It seems the question has been answered for now so I will close this issue.