From 26e8dcbde2dfcf1ac3755b7292ed2143712cdc50 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Sun, 15 Nov 2020 12:09:41 +0100 Subject: [PATCH] unit testing test (#4169) * minor unit testing updates * update deps * update deps * update deps * start with cleanup * update deps * update deps * gitignore allure-report directory * update deps * update deps * update deps * fix whitespace * update deps * update deps --- .gitignore | 3 ++- abap_transpile.json | 5 +++-- package.json | 7 ++++--- src/utils/zcl_abapgit_convert.clas.testclasses.abap | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e98348b21..21a1f76b2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ zabapgit.abap .vscode deps output -ci/*.abap \ No newline at end of file +ci/*.abap +allure-report \ No newline at end of file diff --git a/abap_transpile.json b/abap_transpile.json index 29d5b582a..183e816f0 100644 --- a/abap_transpile.json +++ b/abap_transpile.json @@ -1,12 +1,13 @@ { "input_folder": "src", - "input_filter": ["zif_abapgit_definitions"], + "input_filter": ["zif_abapgit_definitions", "zcl_abapgit_convert"], "output_folder": "output", "lib": "https://github.com/open-abap/open-abap", "write_unit_tests": true, "options": { "ignoreSyntaxCheck": false, "addFilenames": true, - "addCommonJS": true + "addCommonJS": true, + "unknownTypes": "runtimeError" } } \ No newline at end of file diff --git a/package.json b/package.json index e91f58467..64e3ab93a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "test": "npm run eslint && npm run abaplint", "merge": "abapmerge -f src/zabapgit.prog.abap -c zabapgit_standalone > zabapgit.abap", "merge.ci": "cp zabapgit.abap ci/zabapgit_standalone.prog.abap && cd ci && abaplint && cd ..", - "unit_wip": "abap_transpile", + "unit": "rm -rf output && abap_transpile && echo RUNNING && node output/index.js", "abaplint": "abaplint", "eslint": "eslint src" }, @@ -13,8 +13,9 @@ "url": "git+https://github.com/abapGit/abapGit.git" }, "devDependencies": { - "@abaplint/cli": "^2.59.7", - "@abaplint/transpiler-cli": "^0.6.2", + "@abaplint/cli": "^2.60.3", + "@abaplint/transpiler-cli": "^0.7.13", + "@abaplint/runtime": "^0.7.13", "abapmerge": "^0.14.1", "eslint": "^7.13.0" } diff --git a/src/utils/zcl_abapgit_convert.clas.testclasses.abap b/src/utils/zcl_abapgit_convert.clas.testclasses.abap index e5093fd9e..0b61b748c 100644 --- a/src/utils/zcl_abapgit_convert.clas.testclasses.abap +++ b/src/utils/zcl_abapgit_convert.clas.testclasses.abap @@ -203,7 +203,7 @@ CLASS ltcl_convert IMPLEMENTATION. cl_abap_unit_assert=>assert_equals( exp = lt_exp act = lt_act - msg = ' Error during string split: CRLF' ). + msg = 'Error during string split: CRLF' ). CLEAR: lt_act. @@ -212,7 +212,7 @@ CLASS ltcl_convert IMPLEMENTATION. cl_abap_unit_assert=>assert_equals( exp = lt_exp act = lt_act - msg = ' Error during string split: LF' ). + msg = 'Error during string split: LF' ). ENDMETHOD.