Closed larshp closed 6 years ago
@larshp one off-topic question: do you occasionally know how to trigger unit test execution for a given object (program, class, package...)? Kind of cl_abap_unit_test_run( 'zmy_pkg' )
(well, probably more lines of course) and it'd display the result like if I'd trigger it manually in IDE transactions.
via custom code? try taking a look at https://github.com/larshp/abapOpenTest/blob/master/src/runner/zcl_aot_runner.clas.abap#L204
yeap, looks very promising, thanks a lot ! Will have a closer look.
I actually want to do some watching tool. If change is detected in unit test data (mockup_loader slug) or in code (maybe, if I'm not lazy to do it) then re-run the specific UT.
Actually the code you hinted look to do something similar, no ? :) At least there is some timer check I haven't looked closer yet.
video here: https://www.youtube.com/watch?v=UGHJnCczLGk
it runs all unit tests with full coverage, so its possible to tell which code is hit by a unit test, also code outside of the main class is tracked. So, yes, it is a bit like your idea, PRs welcome 😄
Abap CI :) Cool ! Very very interesting, thanks ! :+1:
BTW does this work on below 7.4 (7.31 in particular) ?
¯_(ツ)_/¯
but I dont think it will require lots of changes, if any
Thanks Lars ! =)