diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-09-03 21:14:28 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-09-03 21:14:28 -0500 |
| commit | a70cfc735be53ac01cd6065c13fc9884bd96ae03 (patch) | |
| tree | 046704a1a5bb73e8d43a97c13061da96acf39eee /adapters/gtest | |
| parent | 9a8d57fe0e86645a124a7ff30ba6e171d4325ddf (diff) | |
Add new test runner API
Diffstat (limited to 'adapters/gtest')
| -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 29e2df7..2cc5603 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) +} |
