From de6f8b9bbcfec85c0733b0bbd46b2fa6c7b3b0aa Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Sat, 3 Apr 2021 08:47:22 +0200 Subject: [PATCH] Ignore unit test if experimental features are not enabled (#4683) Closes #4678 Co-authored-by: Lars Hvam --- src/test/zcl_abapgit_objects_ci_tests.clas.abap | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/test/zcl_abapgit_objects_ci_tests.clas.abap b/src/test/zcl_abapgit_objects_ci_tests.clas.abap index ab0c5a311..995aa4efa 100644 --- a/src/test/zcl_abapgit_objects_ci_tests.clas.abap +++ b/src/test/zcl_abapgit_objects_ci_tests.clas.abap @@ -66,17 +66,13 @@ CLASS zcl_abapgit_objects_ci_tests IMPLEMENTATION. " Objects will be created and deleted, do not run in customer system! " These tests may fail if you are locking the entries (e.g. the ZABAPGIT transaction is open) IF zcl_abapgit_persist_settings=>get_instance( )->read( )->get_run_critical_tests( ) = abap_false. - cl_abap_unit_assert=>fail( - msg = 'Cancelled. You can enable these tests in abapGit settings' - level = if_aunit_constants=>tolerable ). + RETURN. ENDIF. " Check if abapGit-CI is installed SELECT SINGLE clsname FROM seoclass INTO lv_check WHERE clsname = 'ZCL_ABAPGIT_CI_REPOS'. IF sy-subrc <> 0. - cl_abap_unit_assert=>fail( - msg = 'Cancelled. abapGit-CI is not installed (https://github.com/abapGit/CI)' - level = if_aunit_constants=>tolerable ). + RETURN. ENDIF. TRY.