From 073dcc8d00399929426159695926fb7cdf719438 Mon Sep 17 00:00:00 2001 From: hrj Date: Sun, 25 Sep 2016 18:14:12 +0530 Subject: [PATCH] internal: reduced verbosity of test output --- cli/src/test/scala/co/uproot/abandon/CliTestRunner.scala | 3 --- testCases/sclT0001-balance/bal01.conf | 2 +- testCases/sclT0001-balance/bal02.conf | 2 +- testCases/sclT0001-balance/bal03.conf | 2 +- testCases/sclT0001-balance/bal04.conf | 2 +- testCases/sclT0002-ledger/all02.conf | 8 +------- testCases/sclT0004-glob/glob01.conf | 2 +- 7 files changed, 6 insertions(+), 15 deletions(-) diff --git a/cli/src/test/scala/co/uproot/abandon/CliTestRunner.scala b/cli/src/test/scala/co/uproot/abandon/CliTestRunner.scala index 71170ce9..3216cc8a 100644 --- a/cli/src/test/scala/co/uproot/abandon/CliTestRunner.scala +++ b/cli/src/test/scala/co/uproot/abandon/CliTestRunner.scala @@ -56,9 +56,6 @@ class CliTestRunner extends FlatSpec with Matchers with Inside { case x: Exception => println("error: " + x); assert(false) } for (testfiles <- tc.testVec) { - println("reference: " + testfiles.reference) - println("output: " + testfiles.output) - assert(testfiles.comparator(testfiles.output, testfiles.reference), "Failed comparison for " + testfiles) } } diff --git a/testCases/sclT0001-balance/bal01.conf b/testCases/sclT0001-balance/bal01.conf index 99d40288..0ef11158 100644 --- a/testCases/sclT0001-balance/bal01.conf +++ b/testCases/sclT0001-balance/bal01.conf @@ -3,7 +3,7 @@ inputs += bal01.ledger reports += { title = "Balance Sheet" type = balance - outFiles = ["-"] + outFiles = [balance.txt] accountMatch = ["^Assets.*", "^Expenses.*"] } diff --git a/testCases/sclT0001-balance/bal02.conf b/testCases/sclT0001-balance/bal02.conf index f99aee67..0d0e2b24 100644 --- a/testCases/sclT0001-balance/bal02.conf +++ b/testCases/sclT0001-balance/bal02.conf @@ -3,7 +3,7 @@ inputs += bal02.ledger reports += { title = "Balance Sheet" type = balance - outFiles = ["-"] + outFiles = [balance.txt] accountMatch = ["^Assets.*", "^Expenses.*"] } diff --git a/testCases/sclT0001-balance/bal03.conf b/testCases/sclT0001-balance/bal03.conf index 3b1104ec..4d7c521a 100644 --- a/testCases/sclT0001-balance/bal03.conf +++ b/testCases/sclT0001-balance/bal03.conf @@ -3,7 +3,7 @@ inputs += bal03.ledger reports += { title = "Balance Sheet" type = balance - outFiles = ["-"] + outFiles = [balance.txt] accountMatch = ["^Assets.*", "^Expenses.*"] } diff --git a/testCases/sclT0001-balance/bal04.conf b/testCases/sclT0001-balance/bal04.conf index cbaa6b39..06067e12 100644 --- a/testCases/sclT0001-balance/bal04.conf +++ b/testCases/sclT0001-balance/bal04.conf @@ -3,7 +3,7 @@ inputs += bal04.ledger reports += { title = "Balance Sheet" type = balance - outFiles = ["-"] + outFiles = [balance.txt] accountMatch = ["^A.*", "^E.*"] } diff --git a/testCases/sclT0002-ledger/all02.conf b/testCases/sclT0002-ledger/all02.conf index 8a5a6375..4d79fb79 100644 --- a/testCases/sclT0002-ledger/all02.conf +++ b/testCases/sclT0002-ledger/all02.conf @@ -24,16 +24,10 @@ reports += { reports += { title = "Balance Sheet" type = balance - outFiles = [out.all02.balSheet.txt, "-"] + outFiles = [out.all02.balSheet.txt] accountMatch = ["^Assets.*", "^Liability.*", "^Capital.*"] } -reports += { - title = "Profit and Loss" - type = balance - accountMatch = ["^Income.*", "^Expenses.*"] -} - reports += { title = "Register" type = register diff --git a/testCases/sclT0004-glob/glob01.conf b/testCases/sclT0004-glob/glob01.conf index d36801a8..1d4bbf78 100644 --- a/testCases/sclT0004-glob/glob01.conf +++ b/testCases/sclT0004-glob/glob01.conf @@ -23,7 +23,7 @@ inputs += glob01-txns/2015/01/2015-01-22.txn reports += { title = "Balance Sheet" type = balance - outFiles = ["-"] + outFiles = [balance.txt] showZeroAmountAccounts = true accountMatch = ["^Assets.*", "^Expenses.*"] }