Commit Graph

95 Commits (abd282564a31c5dec14e2038ebf04fdac9ea3278)

Author SHA1 Message Date
ray-x 040c7bd110 Update document
Smart build tags detection
2 years ago
ray-x 0bf69f9315 pull #136 use cmd string for floating terminal run 2 years ago
ray-x b3c6bde824 flags to load coverage file 2 years ago
ray-x ccaed8c573 cli improvement for gomodifytags, gotest 2 years ago
ray-x 30d30f407a fix diagnostic warnings for all files 2 years ago
ray-x 56143544d7 revert escape changes, it breaks floaterm run 2 years ago
ray-x ad84a0806c update GoTest adding more flags 2 years ago
ray-x 002d7dfd73 infer the test func name with treesitter 2 years ago
ray-x eb4d380807 allow format all buffers with goimports 2 years ago
ray-x bbb37ea81f split none UI releated logic for testing 2 years ago
ray-x fed6b24482 select test from functions 2 years ago
ray-x 125d6fa3d3 better test coverage for gotest 2 years ago
ray-x 323cfae1fa add tests for go test 2 years ago
ray-x 1c727c8768 ts keybinding update 2 years ago
ray-x 0916cb3da1 bugfix for releative path for `GoTest -c` 2 years ago
Aleš Brelih 6d2062c3d7
feat: verbose tests toggle (#123)
Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
2 years ago
ray-x 65b3c19709 issue #110 use releative path to handle symbolic link 2 years ago
ray-x f4c07bb5d6 deprecate get_node_text 2 years ago
ray-x df512d695f issue #94 GoImport autocomplete 2 years ago
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>
2 years ago
ray-x 3043e9bf04 gotest bench 2 years ago
ray-x 0fe0a9ee33 feature: auto jump to quickfix list item if test failed 2 years ago
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>
2 years ago
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>
2 years ago
ray-x e5ebbd9460 Add GoTest -c option, compile test package issue#76 2 years ago
ray-x 85f2300e72 issue #75, better default package path for tests 2 years ago
ray-x 0493df8b44 go 1.18beta 2 years ago
ray-x bd25255d03 fallback to package test, argument and notify 2 years ago
ray-x 264efc57c1 issue #65 failed to run coverage tests. Notify updates. 3 years ago
ray-x 192486892b bugfix #65 coverage failed 3 years ago
ray-x c7c3ab885a better workfolder 3 years ago
ray-x 4484f167d6 bugfix #56 escape '<space>' and '-' 3 years ago
ray-x 2d7e23b72b return gopls setup so we can use in nvim-lsp-installer, issue #56 escape '-' 3 years ago
ray-x 64460e4f88 Add GoVet, update errorformat for issue #55 3 years ago
ray-x 7f625aceca stylua/selene gotest update 3 years ago
ray-x 6e87d834a4 efm format for quickfix; golangci-lint efm setup 3 years ago
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>
3 years ago
ray-x 4611c34548 updates for dapui 3 years ago
ray-x 1b11f52b08 updates for dap.ui 3 years ago
ray-x ef332025ce allow return value for test 3 years ago
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>
3 years ago
ray-x 200dcd22e4 Allow test nearest function 3 years ago
ray-x a093d2420b cursor range col/row calculate 3 years ago
ray-x 5e37dc67e9 allow specify path of test 3 years ago
ray-x 1bdf18bfc2 Add log to file. Fix gotest_fun 3 years ago