Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

TDD - Abap

Former Member
0 Kudos

Hi Collegues,

I am new in Abap Development and I am trying to "port" some of my Agile Knowledges within this new world.

The Abap Unit framework implementation of xUnit is a good point to start.

A unit test is Unit if:

- there is no db connection

- it does no work with network

- etc.

I know, more depends by the way and intention of unit test, but mock an object is really useful.

Is there a way to create mock object in Abap? Something like EasyMock.

Thanks for your replies.

Regards,

Mirco.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

There is nothing, you must develop the whole concept.

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

There is nothing, you must develop the whole concept.

0 Kudos

hi Sandra,

thanks a lot for your useful reply.

Regards,

Mirco.

former_member183804
Active Contributor
0 Kudos

Hello Mirco,

as Sandra already told there is no automatic support for test doubles yet. All you can do is to write stubs, spies and mocks on your own.

BTW: As in ABAP you get the DB connection for free, the definition for a Unit Test does not apply in full extend.

Best Regards

Klaus