aboutsummaryrefslogtreecommitdiff
path: root/adapters/gtest/adapter.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 21:14:28 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 21:14:28 -0500
commit2d197f1ce3eac8cecb5a655fcb5343cbe562ab1a (patch)
tree3b24b0cdd0ddf6456b8bac5fafcf6a1503aaa6aa /adapters/gtest/adapter.go
parent8fa0c34eac027c69a0fce8b5a8251e394cd4d888 (diff)
downloadplanr-2d197f1ce3eac8cecb5a655fcb5343cbe562ab1a.tar.xz
planr-2d197f1ce3eac8cecb5a655fcb5343cbe562ab1a.zip
Add new test runner API
Diffstat (limited to 'adapters/gtest/adapter.go')
-rw-r--r--adapters/gtest/adapter.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/adapters/gtest/adapter.go b/adapters/gtest/adapter.go
index 415d823..0a955ef 100644
--- a/adapters/gtest/adapter.go
+++ b/adapters/gtest/adapter.go
@@ -188,8 +188,7 @@ func (adapter *GtestAdapter) Evaluate(tcs []*planr.TestCase) {
// compilation failure
if !ok {
- fmt.Printf("CAN'T FIND %s: status %d\n", tc.Cname, tc.Result.Status)
-
+
if tc.Result.Status == planr.PASSING {
cfg := tc.AdapterConfig().(*GtestConfig)
@@ -214,3 +213,7 @@ func (adapter *GtestAdapter) Evaluate(tcs []*planr.TestCase) {
tc.Result.TestOutput = result.testOutput
}
}
+
+func New() *GtestAdapter {
+ return new(GtestAdapter)
+}