Skip to Content
avatar image
Former Member

ABAP Unit

hi @all,

first of all:

i'm starting with aUnit for a few weeks and I'm wondering that is no concrete SCN content place to ask all question about design thinking in context of aUnit.

nevertheless:

Has any one of you experiences with aUnit? anyone which not want's to live without aUNit and why? Im facing that the implemantation in ABAP has a lot of overhead by implementing Unit Tests. You agree with that?

kind regards

Micha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 13, 2015 at 09:35 PM

    Yup lots of experience with unit tests. It can be tough to test ABAP code when you're relying heavily on old procedural SAP standard code. But unit tests will save your ass and you should definitely use them.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lucas,

      thanks for your reply. Your are right: I also thought it's saving "your ass". But unfortunately without an IoC Framework or an Isolation-Framework a lot of overhead is produced. And therefore alll "plain old ABAP Devloper" have to thinkover there programming style. That's always a good thing but how to convince thus people?

      regards Micha

  • Jan 14, 2015 at 07:38 AM

    Hi Michael,

    my first usage of unit tests was two years ago. Indeed, it meant an overhead and I also wondered if there's a real benefit.

    However, you will get your reward as soon as you have to modify your code. In my case I had to extend my class and adjust some logic some months later. I was really glad to have this unit test in order to varify my changes. It also served as a good documentation of some functional test cases.

    Besides, you are forced to think about test constellations at an early point during your development process.

    Regards,

    Ulrich

    Add comment
    10|10000 characters needed characters exceeded