Skip to content

Commit

Permalink
unit testing test (#4169)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
larshp committed Nov 15, 2020
1 parent 2f31cc6 commit 26e8dcb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ zabapgit.abap
.vscode
deps
output
ci/*.abap
ci/*.abap
allure-report
5 changes: 3 additions & 2 deletions abap_transpile.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -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"
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/zcl_abapgit_convert.clas.testclasses.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down

0 comments on commit 26e8dcb

Please sign in to comment.