aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/index/java-test/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-20 22:19:39 +0100
committerGitHub <noreply@github.com>2023-02-20 22:19:39 +0100
commitb8a6632a0f2d263199d5d480ca85477fe0f414ab (patch)
tree57e1ee0f3cef078ec144ecdf1b2fa861acf47755 /lua/mason-registry/index/java-test/init.lua
parentchore: autogenerate (#1015) (diff)
downloadmason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.gz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.bz2
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.lz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.xz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.zst
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.zip
feat: configurable registries (#1016)
Diffstat (limited to 'lua/mason-registry/index/java-test/init.lua')
-rw-r--r--lua/mason-registry/index/java-test/init.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/lua/mason-registry/index/java-test/init.lua b/lua/mason-registry/index/java-test/init.lua
new file mode 100644
index 00000000..6366572d
--- /dev/null
+++ b/lua/mason-registry/index/java-test/init.lua
@@ -0,0 +1,37 @@
+local Pkg = require "mason-core.package"
+local github = require "mason-core.managers.github"
+local _ = require "mason-core.functional"
+local path = require "mason-core.path"
+
+return Pkg.new {
+ name = "java-test",
+ desc = _.dedent [[
+ The Test Runner for Java works with java-debug-adapter to provide the following features:
+ - Run/Debug test cases
+ - Customize test configurations
+ - View test report
+ - View tests in Test Explorer
+
+ Enables support for the following test frameworks:
+
+ - JUnit 4 (v4.8.0+)
+ - JUnit 5 (v5.1.0+)
+ - TestNG (v6.8.0+)
+ ]],
+ homepage = "https://github.com/microsoft/vscode-java-test",
+ languages = { Pkg.Lang.Java },
+ categories = { Pkg.Cat.DAP },
+ ---@async
+ ---@param ctx InstallContext
+ install = function(ctx)
+ github
+ .unzip_release_file({
+ repo = "microsoft/vscode-java-test",
+ asset_file = _.format "vscjava.vscode-java-test-%s.vsix",
+ })
+ .with_receipt()
+
+ ctx.fs:rmrf(path.concat { "extension", "resources" })
+ ctx.fs:rmrf(path.concat { "extension", "dist" })
+ end,
+}