diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-03 21:14:28 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-03 21:14:28 -0500 |
commit | 2d197f1ce3eac8cecb5a655fcb5343cbe562ab1a (patch) | |
tree | 3b24b0cdd0ddf6456b8bac5fafcf6a1503aaa6aa /adapters | |
parent | 8fa0c34eac027c69a0fce8b5a8251e394cd4d888 (diff) | |
download | deb-planr-2d197f1ce3eac8cecb5a655fcb5343cbe562ab1a.tar.xz deb-planr-2d197f1ce3eac8cecb5a655fcb5343cbe562ab1a.zip |
Add new test runner API
Diffstat (limited to 'adapters')
-rw-r--r-- | adapters/gtest/adapter.go | 7 |
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) +} |