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: 

Where to assign unit tests for Badi implementations

Former Member
0 Kudos

Hello,

Just a short question. Where do you assign your unit tests for a specific Badi  implementation?

Usually you create local test classes which are part of your class implementations. You can do the same for the class which implements the Badi definition. But you could also create global test classes. I'm wondering is there some common practice or guidance?

Best regards, Tapio

2 REPLIES 2

ceedee666
Active Contributor
0 Kudos

Hi Tapio,

I'm not a ware of any commonly accepted best practice. Therefore, I'd stick with the "normal" approach and create a local test class for the unit test.

Christian

Former Member
0 Kudos

Hi Christian,

Ok, if you have filter-dependent Badi, you create a local test class for each filter-dependent implementation class.

The more I think about it, I guess it's the right way to do. You have to write unit tests for each implementation class if you want to be sure that each implementation works as expected.

Lets see if there is another opinion about it.

Best regards, Tapio