{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2366","repository_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2366/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2366/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2366/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2366","id":137101602,"number":2366,"title":"Exclude vendor directories from tests","user":{"login":"F21","id":2263040,"avatar_url":"https://avatars.githubusercontent.com/u/2263040?v=3","gravatar_id":"","url":"https://api.github.com/users/F21","html_url":"https://github.com/F21","followers_url":"https://api.github.com/users/F21/followers","following_url":"https://api.github.com/users/F21/following{/other_user}","gists_url":"https://api.github.com/users/F21/gists{/gist_id}","starred_url":"https://api.github.com/users/F21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F21/subscriptions","organizations_url":"https://api.github.com/users/F21/orgs","repos_url":"https://api.github.com/users/F21/repos","events_url":"https://api.github.com/users/F21/events{/privacy}","received_events_url":"https://api.github.com/users/F21/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/labels/improvement","name":"improvement","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"assignees":[{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2016-02-28T22:01:20Z","updated_at":"2016-10-25T16:58:10Z","closed_at":null,"body":"In Go 1.6, the vendor experiment is now enabled by default (which is a really good thing). However, there doesn't seem to be a way to exclude the `vendor` directory when running tests: https://github.com/golang/go/issues/11659\r\n\r\nIf you're using `glide` for package management, you can run `go test $(glide novendor)` and the `glide novendor` command will generate a list of packages (excluding vendor) to test. However, `$(...)` doesn't work on windows, so it's not possible to set up the plugin to run tests within it.\r\n\r\nIt would be nice if the plugin had an option to exclude certain directories when running tests. For example, if we exclude the `vendor` directory, it could use that information to create a list of packages to pass to the `go test` tool.\r\n\r\n- Plugin version (or commit hash): 0.10.1156\r\n- IDE name and version: PHPStorm 10.0.3\r\n- Java version: java version \"1.8.0_73\" Java(TM) SE Runtime Environment (build 1.8.0_73-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)\r\n- OS name and version: Windows 10 64-bit\r\n\r\n- What are you trying to do?\r\nExclude the `vendor` directory when running tests\r\n\r\n- What would you expect to happen?\r\nTests in the vendor directory should not be run.\r\n\r\n- What happens?\r\nTests in the vendor directory are run.\r\n\r\nThis is the my configuration for running tests:\r\n![1](https://cloud.githubusercontent.com/assets/2263040/13382275/7cb05340-dec4-11e5-88ab-166f0407715f.png)\r\n"},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/256095162","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2366#issuecomment-256095162","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2366","id":256095162,"user":{"login":"itcreator","id":928509,"avatar_url":"https://avatars.githubusercontent.com/u/928509?v=3","gravatar_id":"","url":"https://api.github.com/users/itcreator","html_url":"https://github.com/itcreator","followers_url":"https://api.github.com/users/itcreator/followers","following_url":"https://api.github.com/users/itcreator/following{/other_user}","gists_url":"https://api.github.com/users/itcreator/gists{/gist_id}","starred_url":"https://api.github.com/users/itcreator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itcreator/subscriptions","organizations_url":"https://api.github.com/users/itcreator/orgs","repos_url":"https://api.github.com/users/itcreator/repos","events_url":"https://api.github.com/users/itcreator/events{/privacy}","received_events_url":"https://api.github.com/users/itcreator/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T16:58:10Z","updated_at":"2016-10-25T16:58:10Z","body":"modify to \r\n```\r\nexecutor.withParameters(\"test\");\r\nexecutor.withParameterString(myConfiguration.getGoToolParams());\r\nexecutor.withParameters(\"-v\");\r\n```\r\n"}}
{"actor":{"display_login":"itcreator"}}