-
-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(gexec) Add CompileTest functions. Close #410 Adds following methods: - CompileTest(packagePath string, args ...string) (compiledPath string, err error) - CompileTestWithEnvironment(packagePath string, env []string, args ...string) (compiledPath string, err error) - CompileTestIn(gopath string, packagePath string, args ...string) (compiledPath string, err error) Signed-off-by: Pierre Péronnet <[email protected]> * fix(gexec) Binaries for tests are built when needed This solve the issue in test where suite scoped firefly binary was removed by CleanupBuildArtifacts() in build_test.go Signed-off-by: Pierre Péronnet <[email protected]> * feat(gexec) Add methods to get and compile tests Adds following methods: - GetAndCompileTest(packagePath string, args ...string) (compiledPath string, err error) - GetAndCompileTestWithEnvironment(packagePath string, env []string, args ...string) (compiledPath string, err error) - GetAndCompileTestIn(gopath string, packagePath string, args ...string) (compiledPath string, err error) Signed-off-by: Pierre Péronnet <[email protected]>
- Loading branch information
Showing
6 changed files
with
604 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main_test | ||
|
||
import "testing" | ||
|
||
func Test(t *testing.T) { | ||
t.Log("Hum, it seems okay.") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.