aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/java-test/init.lua
diff options
context:
space:
mode:
authorlvimuser <109605931+lvimuser@users.noreply.github.com>2022-09-30 12:06:09 -0300
committerGitHub <noreply@github.com>2022-09-30 17:06:09 +0200
commitac0bbad3d39adbc0a04ed2816c570a2f36874c3f (patch)
tree1d352f5689f48f08eee4ef06268d0af0c276d3fd /lua/mason-registry/java-test/init.lua
parentchore: update generated code (#485) (diff)
downloadmason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.tar
mason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.tar.gz
mason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.tar.bz2
mason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.tar.lz
mason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.tar.xz
mason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.tar.zst
mason-ac0bbad3d39adbc0a04ed2816c570a2f36874c3f.zip
feat: add java-debug-adapter and java-test (#482)
Diffstat (limited to 'lua/mason-registry/java-test/init.lua')
-rw-r--r--lua/mason-registry/java-test/init.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/lua/mason-registry/java-test/init.lua b/lua/mason-registry/java-test/init.lua
new file mode 100644
index 00000000..6366572d
--- /dev/null
+++ b/lua/mason-registry/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,
+}