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

Using the setup keyword with the VSCode UI #112

Closed
bvdmitri opened this issue Oct 4, 2023 · 4 comments
Closed

Using the setup keyword with the VSCode UI #112

bvdmitri opened this issue Oct 4, 2023 · 4 comments
Labels
question Further information is requested

Comments

@bvdmitri
Copy link

bvdmitri commented Oct 4, 2023

It seems that the setup keyword does not work when running from VSCode UI? Is there a workaround for that?

@nickrobinson251
Copy link
Collaborator

Unfortunately VSCode has an entirely different implementation: it doesn't use ReTestItems.jl at all, it uses https://github.com/julia-vscode/TestItemRunner.jl

We create ReTestItems.jl because we liked the interface but needed an implementation that we could move fast on developing and prioritised CI testing on large projects. One day we'd love there to be only one implementation.

I think VSCode (or at least the underlying package it uses) has some support for "test setups" but i think you would need to ask on that repo for if/when it will be released and available via the VSCode interface (julia-vscode/TestItemRunner.jl#39 (comment))

@bvdmitri
Copy link
Author

bvdmitri commented Oct 4, 2023

Thanks for the answer, for now I found a workaround by just using include inside of the @testitem for the setup. Works both in VSCode UI and in the ] test command

@nickrobinson251 nickrobinson251 added the question Further information is requested label Jan 11, 2024
@nickrobinson251
Copy link
Collaborator

Closed as this is for VS Code to fix, and for now there is the workaround of using include

@nickrobinson251
Copy link
Collaborator

VS Code now supports the setup=[...] keyword, unfortunately with a slightly different interface, see https://discourse.julialang.org/t/new-stable-features-for-the-test-item-framework/118512

we may adopt this interface to stay aligned with VS Code (but TBD) #182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants