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

verify single with anonymous tests #55

Open
gcentauri opened this issue Feb 29, 2020 · 3 comments
Open

verify single with anonymous tests #55

gcentauri opened this issue Feb 29, 2020 · 3 comments

Comments

@gcentauri
Copy link
Collaborator

Currently, minitest-emacs extracts the test description to pass as a regex to minitest. the minitest --name flag can take a string or a pattern.

For tests like it { assert true }, there is no string or pattern to pass from the test buffer. It appears that under the hood, minitest defines methods like test_0001_anonymous for these it blocks. The number determined by the order the test is defined in the file.

One way to potentially handle this is to use Emacs to parse the entire test buffer and build up a list of test definitions for the whole file. This could prove useful for other reasons, but may be complicated to accomplish, especially given the various ways that tests can be defined in the minitest ecosystem.

@la-ruby
Copy link

la-ruby commented Dec 18, 2022

@gcentauri @arthurnn
do you use minitest-emacs nowadays?
asking because I want to start using this - but if people have switched off or found alternatives then I might have second thoughts

@gcentauri
Copy link
Collaborator Author

@la-ruby - yes! I use it daily. I know the repo hasn't had much activity, but for most cases, everything just works. I'd like to get this into the non-gnu-elpa repo as well as MELPA, but yeah we're still here.

happy to answer any questions you might have.

@arthurnn
Copy link
Owner

arthurnn commented Jan 4, 2023

do you use minitest-emacs nowadays?

I don't. I have migrated to VSCode about 1 year ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants