From 3337257fe24b67871406217e98862d34647dd725 Mon Sep 17 00:00:00 2001 From: Flu0r1ne Date: Fri, 13 Aug 2021 16:31:04 -0500 Subject: Add colorized output and build traces --- testcase.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'testcase.go') diff --git a/testcase.go b/testcase.go index 989838c..d3fe8ed 100644 --- a/testcase.go +++ b/testcase.go @@ -1,8 +1,18 @@ package planr +type TestStatus uint + +const ( + PASSING TestStatus = iota + COMPILATION_FAILURE + RUNTIME_FAILURE +) + type TestResult struct { - Id string - Pass bool + Id string + Status TestStatus + FailureMsg string + DebugOutput string } type TestCase struct { @@ -18,6 +28,7 @@ type TestCase struct { Config TestCaseConfig Result *TestResult + } func (tc TestCase) AdapterConfig() InheritableConfig { -- cgit v1.2.3 From 5d33040ab80b5cce7883b2e5965aa17db2e6515a Mon Sep 17 00:00:00 2001 From: Flu0r1ne Date: Fri, 13 Aug 2021 18:25:17 -0500 Subject: Opt to show CLI output over JSON output --- testcase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testcase.go') diff --git a/testcase.go b/testcase.go index d3fe8ed..8506b84 100644 --- a/testcase.go +++ b/testcase.go @@ -11,8 +11,8 @@ const ( type TestResult struct { Id string Status TestStatus - FailureMsg string DebugOutput string + TestOutput string } type TestCase struct { -- cgit v1.2.3