mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 03:36:32 +08:00
fix
This commit is contained in:
parent
dfa8fb41e2
commit
f7f00aa1ca
15
.github/workflows/test-pr.yml
vendored
15
.github/workflows/test-pr.yml
vendored
|
@ -31,12 +31,9 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- name: npm run unit
|
||||
run: npm run unit
|
||||
- name: npm run coverage
|
||||
run: npm run coverage
|
||||
- run: npm install
|
||||
- run: npm run unit
|
||||
- run: npm run coverage
|
||||
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -45,10 +42,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- run: npm install
|
||||
- name: start gitea
|
||||
working-directory: test/gitea/
|
||||
run: npm install && npm run gitea
|
||||
- name: npm run integration
|
||||
run: npm run integration
|
||||
- run: npm run integration
|
||||
|
|
|
@ -1,14 +1,34 @@
|
|||
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL CRITICAL FINAL.
|
||||
|
||||
PRIVATE SECTION.
|
||||
INTERFACES if_ftd_invocation_answer.
|
||||
METHODS setup.
|
||||
METHODS teardown.
|
||||
METHODS list_branches FOR TESTING RAISING cx_static_check.
|
||||
METHODS list_no_blobs FOR TESTING RAISING cx_static_check.
|
||||
METHODS commits_last_year FOR TESTING RAISING cx_static_check.
|
||||
|
||||
DATA mi_env TYPE REF TO if_function_test_environment.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS ltcl_test IMPLEMENTATION.
|
||||
METHOD setup.
|
||||
DATA lt_deps TYPE if_function_test_environment=>tt_function_dependencies.
|
||||
|
||||
INSERT 'SAPGUI_PROGRESS_INDICATOR' INTO TABLE lt_deps.
|
||||
mi_env = cl_function_test_environment=>create( lt_deps ).
|
||||
|
||||
mi_env->get_double( 'SAPGUI_PROGRESS_INDICATOR' )->configure_call( )->ignore_all_parameters( )->then_answer( me ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD teardown.
|
||||
mi_env->clear_doubles( ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD if_ftd_invocation_answer~answer.
|
||||
RETURN.
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD list_branches.
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ CLASS ltcl_test IMPLEMENTATION.
|
|||
DATA lt_deps TYPE if_function_test_environment=>tt_function_dependencies.
|
||||
DATA lo_initial TYPE REF TO zif_abapgit_repo_srv.
|
||||
DATA lo_tr_object_table TYPE REF TO lcl_tr_object_table.
|
||||
DATA lo_environment TYPE REF TO zcl_abapgit_web_environment.
|
||||
|
||||
zcl_abapgit_repo_srv=>inject_instance( lo_initial ).
|
||||
|
||||
|
@ -61,10 +62,17 @@ CLASS ltcl_test IMPLEMENTATION.
|
|||
mi_env->get_double( 'TR_OBJECT_TABLE' )->configure_call( )->ignore_all_parameters(
|
||||
)->then_answer( lo_tr_object_table ).
|
||||
|
||||
CREATE OBJECT lo_environment.
|
||||
zcl_abapgit_injector=>set_environment( lo_environment ).
|
||||
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD teardown.
|
||||
DATA li_environment TYPE REF TO zif_abapgit_environment.
|
||||
|
||||
mi_env->clear_doubles( ).
|
||||
|
||||
zcl_abapgit_injector=>set_environment( li_environment ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD if_ftd_invocation_answer~answer.
|
||||
|
|
Loading…
Reference in New Issue
Block a user