forked from loafle/openapi-generator-original
Test go-gin-server sample with go test -v (#8855)
* test go gin sample with `go test -v` * install via go get * update main.mustache
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
// once you place this file into your project.
|
||||
// For example,
|
||||
//
|
||||
// sw "github.com/myname/myrepo/{{apiPath}}"
|
||||
//sw "github.com/{{{gitUserId}}}/{{{gitRepoId}}}/{{{apiPath}}}"
|
||||
//
|
||||
sw "./{{apiPath}}"
|
||||
)
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
// once you place this file into your project.
|
||||
// For example,
|
||||
//
|
||||
// sw "github.com/myname/myrepo/go"
|
||||
//sw "github.com/GIT_USER_ID/GIT_REPO_ID/go"
|
||||
//
|
||||
sw "./go"
|
||||
)
|
||||
|
||||
@@ -27,30 +27,30 @@
|
||||
<version>1.2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>gofmt-test</id>
|
||||
<id>go-get</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>gofmt</executable>
|
||||
<executable>go</executable>
|
||||
<arguments>
|
||||
<argument>-w</argument>
|
||||
<argument>./main.go</argument>
|
||||
<argument>get</argument>
|
||||
<argument>github.com/gin-gonic/gin</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>gofmt-file-test</id>
|
||||
<id>go-test</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>gofmt</executable>
|
||||
<executable>go</executable>
|
||||
<arguments>
|
||||
<argument>-w</argument>
|
||||
<argument>./go/</argument>
|
||||
<argument>test</argument>
|
||||
<argument>-v</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
Reference in New Issue
Block a user