julia-vscode / TestItemRunner.jl

Run Julia test items
MIT License
76 stars 11 forks source link

Adding common code lines/expressions to `@run_package_tests` #75

Closed SamuelBrand1 closed 3 months ago

SamuelBrand1 commented 3 months ago

Hi everyone,

At the moment, there is an option to have default_imports true/false which engages using MyPackage (if detected) and using Test in every testitem. However, I don't see an option to include any other code expressions?

As an example, it would be nice to have a common rng for every test item rather than having to add plenty of boiler plate to potentially lots of tests?

SamuelBrand1 commented 3 months ago

So looking a bit deeper. Would this functionality be covered by test setup? e.g. #71 ?

davidanthoff commented 3 months ago

Already tracked by https://github.com/julia-vscode/TestItemRunner.jl/issues/11.