Commit Graph

86 Commits

Author SHA1 Message Date
ray-x
bbb37ea81f split none UI releated logic for testing 2022-05-24 21:43:33 +10:00
ray-x
fed6b24482 select test from functions 2022-05-24 19:17:26 +10:00
ray-x
125d6fa3d3 better test coverage for gotest 2022-05-24 17:54:52 +10:00
ray-x
323cfae1fa add tests for go test 2022-05-24 17:23:53 +10:00
ray-x
1c727c8768 ts keybinding update 2022-05-13 20:54:47 +10:00
ray-x
0916cb3da1 bugfix for releative path for GoTest -c 2022-05-10 11:03:15 +10:00
Aleš Brelih
6d2062c3d7
feat: verbose tests toggle (#123)
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2022-05-08 20:44:13 +10:00
ray-x
65b3c19709 issue #110 use releative path to handle symbolic link 2022-04-25 14:57:27 +10:00
ray-x
f4c07bb5d6 deprecate get_node_text 2022-04-19 00:22:08 +10:00
ray-x
df512d695f issue #94 GoImport autocomplete 2022-04-18 22:33:02 +10:00
rayx
32f103258b
Gotest refactor (#102)
* issue #82 allow close terminal in current buffer

* update go test arguments

* auto complete args updates based on @Craig Rodgigues feedbacks

* update test arguments

* Return cursor to previous cursor position (#101)

`GoGet` and `GoMod` opens up a new split and move the cursor there.
If the cursor isn't moved back to the *.go buffer, `utils.restart`
will try to spawn gopls in the terminal split, which results in
gopls failed to restart properly.

* fix double close when end dap session

* add relFileDir in launch.json

* update sample go app

* fix: remove cover file (#107)

* fix: remove cover file

* fix: coverage notify message

* github action setup for go 1.18

* issue #109 config dap marker

* setup pipeline with go install

* add icons setup options in doc issue #35 issue #109

Co-authored-by: Mochammad Hanif R <etrnal70@gmail.com>
Co-authored-by: Nicolas Barbosa <ndevbarbosa@gmail.com>
2022-04-16 22:09:15 +10:00
ray-x
3043e9bf04 gotest bench 2022-03-15 10:16:34 +11:00
ray-x
0fe0a9ee33 feature: auto jump to quickfix list item if test failed 2022-02-23 21:01:19 +11:00
Aleš Brelih
3c44e3a998
fix: test file function (#78)
Test file function wasn't working anymore. It didn't find functions to
test even though the sed found them.

Problem was in the escaping the pipe sign.

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2022-01-19 08:41:11 +11:00
Aleš Brelih
d369ef454d
fix: test fun defaults (#77)
The default package parameter for TestFun is not needed because this
function is meant to target the current file only. Using the default
package parameter increased run time of time function drastically.

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2022-01-19 08:22:53 +11:00
ray-x
e5ebbd9460 Add GoTest -c option, compile test package issue#76 2022-01-16 13:08:16 +11:00
ray-x
85f2300e72 issue #75, better default package path for tests 2022-01-14 14:35:23 +11:00
ray-x
0493df8b44 go 1.18beta 2022-01-12 15:57:30 +11:00
ray-x
bd25255d03 fallback to package test, argument and notify 2022-01-11 11:57:54 +11:00
ray-x
264efc57c1 issue #65 failed to run coverage tests. Notify updates. 2021-12-30 01:33:24 +11:00
ray-x
192486892b bugfix #65 coverage failed 2021-12-27 19:47:59 +11:00
ray-x
c7c3ab885a better workfolder 2021-12-16 18:15:21 +11:00
ray-x
4484f167d6 bugfix #56 escape '<space>' and '-' 2021-12-16 12:34:06 +11:00
ray-x
2d7e23b72b return gopls setup so we can use in nvim-lsp-installer, issue #56 escape '-' 2021-12-16 12:23:43 +11:00
ray-x
64460e4f88 Add GoVet, update errorformat for issue #55 2021-12-15 19:02:22 +11:00
ray-x
7f625aceca stylua/selene gotest update 2021-12-11 08:45:42 +11:00
ray-x
6e87d834a4 efm format for quickfix; golangci-lint efm setup 2021-12-10 21:13:23 +11:00
Aleš Brelih
cfeab3d398
fix: build tags was missing space (#46)
* fix: build tags was missing space

* if run in floaterm, '\ ' may cause error

Thanks for the PR. I did some update please check if it works

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
2021-11-29 23:09:30 +11:00
ray-x
4611c34548 updates for dapui 2021-11-24 20:05:02 +11:00
ray-x
1b11f52b08 updates for dap.ui 2021-11-24 10:13:40 +11:00
ray-x
ef332025ce allow return value for test 2021-11-22 20:12:57 +11:00
Aleš Brelih
d9f44a9320
feat: default build tags (#38)
* feat: default build tags

Added option to specify default build tags for test and debugger.

* Update dap.lua

check   if _GO_NVIM_CFG.build_tags ~= "" then

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
Co-authored-by: rayx <rayx.cn@gmail.com>
2021-10-25 10:05:02 +11:00
ray-x
200dcd22e4 Allow test nearest function 2021-08-31 21:19:14 +10:00
ray-x
a093d2420b cursor range col/row calculate 2021-07-17 01:58:44 +10:00
ray-x
5e37dc67e9 allow specify path of test 2021-07-09 02:52:06 +10:00
ray-x
1bdf18bfc2 Add log to file. Fix gotest_fun 2021-07-09 02:16:22 +10:00