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

Add support for position type 'dir' #32

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

fredrikaverpil
Copy link
Owner

@fredrikaverpil fredrikaverpil commented Jun 16, 2024

This adds substantial performance improvements on being able to run all tests in
a Go project using one 'go test' command, instead of executing on a per-test
basis.

Either run all tests in the entire test suite (given that you have a go.mod in your $cwd):

require("neotest").run.run({ suite = true })

Or select a directory in the Neotest summary window, and hit r to execute the tests
in that Go package.

@fredrikaverpil fredrikaverpil self-assigned this Jun 16, 2024
@fredrikaverpil fredrikaverpil force-pushed the feat/position-type/dir branch 15 times, most recently from 56cf8da to 656eb3e Compare June 17, 2024 18:46
@fredrikaverpil fredrikaverpil marked this pull request as draft June 17, 2024 22:18
@fredrikaverpil fredrikaverpil force-pushed the feat/position-type/dir branch 11 times, most recently from 71d5980 to fc456fd Compare June 20, 2024 06:18
@fredrikaverpil fredrikaverpil force-pushed the feat/position-type/dir branch 5 times, most recently from 8e7c6bb to a21e1a0 Compare June 20, 2024 06:22
@fredrikaverpil fredrikaverpil marked this pull request as ready for review June 20, 2024 06:22
@fredrikaverpil fredrikaverpil force-pushed the feat/position-type/dir branch from a21e1a0 to c8627f1 Compare June 20, 2024 06:23
This adds substantial performance improvements on being able to run all
tests in a Go project using one 'go test' command, instead of executing
on a per-test basis. The 'go list' command is an important key to couple
neotest positions with actual test data from 'go test' output.
@fredrikaverpil fredrikaverpil force-pushed the feat/position-type/dir branch from c8627f1 to a731e2a Compare June 20, 2024 06:24
@fredrikaverpil fredrikaverpil merged commit 8acce7e into main Jun 20, 2024
7 checks passed
@fredrikaverpil fredrikaverpil deleted the feat/position-type/dir branch June 20, 2024 06:26
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

Successfully merging this pull request may close these issues.

1 participant