Skip to content

Remove all tests that use nu_with_plugins!#18585

Merged
cptpiepmatz merged 34 commits into
nushell:mainfrom
cptpiepmatz:no-more-nu_with_plugins
Jul 13, 2026
Merged

Remove all tests that use nu_with_plugins!#18585
cptpiepmatz merged 34 commits into
nushell:mainfrom
cptpiepmatz:no-more-nu_with_plugins

Conversation

@cptpiepmatz

@cptpiepmatz cptpiepmatz commented Jul 12, 2026

Copy link
Copy Markdown
Member

Description

This PR replaces all usages of nu_with_plugins! with test() in combination with #[deps(...)].

While working on this, I found that rstest's timeout feature uses another thread to check for the timeout. This requires a process-wide NuTester setup instead of a thread local one, so I moved the dependency preparation from being set up as test level to being set up at group level. For that I made the dependencies also part of the GroupKey which now creates some more groups than before but this fixes the threading situation.

Finally this PR also removes the macro as it is no longer needed and shouldn't be used anyway anymore.

User-facing changes (Release notes)

n/a

Additional notes

@cptpiepmatz
cptpiepmatz marked this pull request as ready for review July 12, 2026 22:33
@cptpiepmatz
cptpiepmatz marked this pull request as draft July 12, 2026 22:37
@cptpiepmatz cptpiepmatz added tests issues to add tests or fix tests notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes labels Jul 12, 2026
@cptpiepmatz
cptpiepmatz marked this pull request as ready for review July 13, 2026 18:29
@cptpiepmatz
cptpiepmatz merged commit b2202e1 into nushell:main Jul 13, 2026
18 checks passed
@cptpiepmatz
cptpiepmatz deleted the no-more-nu_with_plugins branch July 13, 2026 18:49
@github-actions github-actions Bot added this to the v0.115.0 milestone Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes tests issues to add tests or fix tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants