From 2d4133d476bbcd7d788e1f3725297e39bf5c0066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20Zim=C3=A1nyi?= Date: Wed, 9 Oct 2024 15:38:56 +0200 Subject: [PATCH] Fix BAMOE results for report generator. (#678) --- .../IBMBAMOE/9.1.1-ibm-0003/tck_results.csv | 20 +++++-------------- .../dmn/tck/runner/drools/DroolsTCKTest.java | 2 +- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/TestResults/IBMBAMOE/9.1.1-ibm-0003/tck_results.csv b/TestResults/IBMBAMOE/9.1.1-ibm-0003/tck_results.csv index 282883f7..82a6a328 100644 --- a/TestResults/IBMBAMOE/9.1.1-ibm-0003/tck_results.csv +++ b/TestResults/IBMBAMOE/9.1.1-ibm-0003/tck_results.csv @@ -2725,21 +2725,11 @@ "compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-14","SUCCESS","" "compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-15","SUCCESS","" "compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-17","SUCCESS","" -"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-2","ERROR","Message [id=0, level=ERROR, path=/Users/tiborzimanyi/IdeaProjects/tck/runners/dmn-tck-runner-drools/../../TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn, line=243, column=-1 - text=DMN: FEEL ERROR while evaluating literal expression 'matches("hello world", " hello[ ]world", "x")': The parameter 'pattern', in function matches(), is invalid and can not be compiled. (FEEL expression evaluation error) ] -FAILURE: 'K2-MatchesFunc-2' expected='true' but found='null'" -"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-3","ERROR","Message [id=0, level=ERROR, path=/Users/tiborzimanyi/IdeaProjects/tck/runners/dmn-tck-runner-drools/../../TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn, line=251, column=-1 - text=DMN: FEEL ERROR while evaluating literal expression 'matches("hello world", "hello[ ]world ", "x")': The parameter 'pattern', in function matches(), is invalid and can not be compiled. (FEEL expression evaluation error) ] -FAILURE: 'K2-MatchesFunc-3' expected='true' but found='null'" -"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-4","ERROR","Message [id=0, level=ERROR, path=/Users/tiborzimanyi/IdeaProjects/tck/runners/dmn-tck-runner-drools/../../TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn, line=259, column=-1 - text=DMN: FEEL ERROR while evaluating literal expression 'matches("hello world", "he ll o[ ]worl d", "x")': The parameter 'pattern', in function matches(), is invalid and can not be compiled. (FEEL expression evaluation error) ] -FAILURE: 'K2-MatchesFunc-4' expected='true' but found='null'" -"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-5","ERROR","Message [id=0, level=ERROR, path=/Users/tiborzimanyi/IdeaProjects/tck/runners/dmn-tck-runner-drools/../../TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn, line=267, column=-1 - text=DMN: FEEL ERROR while evaluating literal expression 'matches("hello world", "\p{ IsBasicLatin}+", "x")': The parameter 'pattern', in function matches(), is invalid and can not be compiled. (FEEL expression evaluation error) ] -FAILURE: 'K2-MatchesFunc-5' expected='true' but found='null'" -"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-6","ERROR","Message [id=0, level=ERROR, path=/Users/tiborzimanyi/IdeaProjects/tck/runners/dmn-tck-runner-drools/../../TestCases/compliance-level-3/1111-feel-matches-function/1111-feel-matches-function.dmn, line=275, column=-1 - text=DMN: FEEL ERROR while evaluating literal expression 'matches("hello world", "\p{ I s B a s i c L a t i ... [string clipped after 50 chars, total length is 61]': The parameter 'pattern', in function matches(), is invalid and can not be compiled. (FEEL expression evaluation error) ] -FAILURE: 'K2-MatchesFunc-6' expected='true' but found='null'" +"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-2","ERROR","FAILURE: 'K2-MatchesFunc-2' expected='true' but found='null'" +"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-3","ERROR","FAILURE: 'K2-MatchesFunc-3' expected='true' but found='null'" +"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-4","ERROR","FAILURE: 'K2-MatchesFunc-4' expected='true' but found='null'" +"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-5","ERROR","FAILURE: 'K2-MatchesFunc-5' expected='true' but found='null'" +"compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-6","ERROR","FAILURE: 'K2-MatchesFunc-6' expected='true' but found='null'" "compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-7","SUCCESS","" "compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-8","ERROR","FAILURE: 'K2-MatchesFunc-8' expected='null' but found='false'" "compliance-level-3/1111-feel-matches-function","1111-feel-matches-function-test-01","K2-MatchesFunc-9","ERROR","FAILURE: 'K2-MatchesFunc-9' expected='null' but found='false'" diff --git a/runners/dmn-tck-runner-drools/src/test/java/org/omg/dmn/tck/runner/drools/DroolsTCKTest.java b/runners/dmn-tck-runner-drools/src/test/java/org/omg/dmn/tck/runner/drools/DroolsTCKTest.java index 1947d2cf..8ba4e41c 100644 --- a/runners/dmn-tck-runner-drools/src/test/java/org/omg/dmn/tck/runner/drools/DroolsTCKTest.java +++ b/runners/dmn-tck-runner-drools/src/test/java/org/omg/dmn/tck/runner/drools/DroolsTCKTest.java @@ -175,7 +175,7 @@ public TestResult executeTest(Description description, TestSuiteContext context, } } else if (dmnResult.hasErrors()) { for (DMNMessage msg : dmnResult.getMessages(DMNMessage.Severity.ERROR)) { - failures.add(msg.toString()); + LOGGER.error(decisionName + " produced an error: " + msg.toString()); } } }