Skip to content

Conversation

@davidanthoff
Copy link
Member

@davidanthoff davidanthoff commented Aug 7, 2021

Now somewhat functional. This works quite well now, you can watch a demo at https://youtu.be/Okn_HKihWn8?t=1267 to get a sense how to use this.

The general idea is that one can add

@testitem "Name of test item" begin
end

anywhere in the Julia code, and then the test runner UI provides a way to execute each of these test items individually inside a new module. https://github.com/julia-vscode/TestItemRunner.jl has some documentation on how to write tests that can be picked up by this feature in the VS Code extension and how to run such new tests via the Base test infrastructure.

https://github.com/julia-vscode/TestItems.jl can be used to write inline tests in say a package.

Please do give this branch a try and report back whether it works!

Lots of things still to do:

@davidanthoff davidanthoff added this to the Backlog milestone Aug 7, 2021
@davidanthoff davidanthoff mentioned this pull request Aug 15, 2021
@davidanthoff davidanthoff mentioned this pull request Mar 25, 2022
3 tasks
@JackKenney
Copy link

JackKenney commented Apr 24, 2022

Thanks for working on this @davidanthoff! This is a much needed feature. It would be a huge improvement to my package-development workflow.

@davidanthoff davidanthoff marked this pull request as ready for review August 14, 2022 22:57
@davidanthoff davidanthoff requested a review from pfitzseb August 14, 2022 22:57
@davidanthoff
Copy link
Member Author

@pfitzseb this is ready for review.

I think what we should do is merge this relatively quickly but not announce it widely and then have the feature ship for a while "quietly" with just maybe the folks on the Slack channel knowing about it and trying it. We could also just say the whole thing is still in preview, but in the shipping extension. And then once things have settled, we can announce that it is out of preview.

But in general, I think this primarily needs to be tried out by folks now.

@davidanthoff davidanthoff modified the milestones: Backlog, Next Minor Aug 24, 2022
@davidanthoff davidanthoff merged commit 56fd995 into master Aug 24, 2022
@davidanthoff davidanthoff deleted the test-integration branch August 24, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants