Skip to content

Test for all packages

Igor Maznitsa edited this page Aug 26, 2016 · 1 revision

By default the plugin check all source folders and collects folders where found *_test.go files. Then it starts go test with list of found packages to test. The Standard approach in GoLang to test all folders is to use ./..., if you want such solution with the plugin then just reconfigure execution of the default test task with below code snippet

<execution>
  <id>default-test</id>
  <configuration>
    <!-- Needed to show console output -->
    <verbose>true</verbose>
    <packages>
      <folder>.${file.separator}...</folder>
    </packages>
  </configuration>
</execution>