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

refactor(runners): allow for custom runners #189

Closed
wants to merge 1 commit into from

Conversation

fredrikaverpil
Copy link
Owner

@fredrikaverpil fredrikaverpil commented Sep 17, 2024

Why?

Bring your own test runner as discussed in...

This PR will make go test and gotestsum into first-class citizen test runners, showcasing how you can provide your own (via opts) by looking at how these are implemented.

What?

  • Provide ability to supply custom test command.
  • Provide ability to supply custom test command output, returning Neotest results.
  • Refactor tests.

Notes

I'm very much trying out the feel of a bunch of refactorings in this PR. I might want to start over in a fresh PR once I have something that feels good. I'm not entirely happy as it stands and I might close this PR just because nobody right now seems to need this anyway...

But it has been a good excercise in figuring out how to support two levels of configuring test runners; one easy level where you just set the runner and the args in your opts - and one deeper level where you can potentially supply custom logic.

@fredrikaverpil fredrikaverpil self-assigned this Sep 17, 2024
@fredrikaverpil fredrikaverpil force-pushed the runners-refactor branch 9 times, most recently from 47d957b to 130a049 Compare September 21, 2024 13:02
@fredrikaverpil fredrikaverpil force-pushed the runners-refactor branch 3 times, most recently from 9ef5aed to c244b7a Compare October 13, 2024 11:55
@fredrikaverpil fredrikaverpil marked this pull request as ready for review October 13, 2024 12:14
@fredrikaverpil fredrikaverpil force-pushed the runners-refactor branch 4 times, most recently from 445b442 to c282a1a Compare October 13, 2024 15:18
@fredrikaverpil fredrikaverpil marked this pull request as draft October 13, 2024 19:47
@fredrikaverpil fredrikaverpil mentioned this pull request Oct 14, 2024
5 tasks
@fredrikaverpil fredrikaverpil force-pushed the runners-refactor branch 2 times, most recently from 569ee84 to 38433a8 Compare October 14, 2024 20:07
@fredrikaverpil
Copy link
Owner Author

I'm going to close this for now.

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