07-06-2015 9:40 AM
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
07-06-2015 9:45 AM
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
07-06-2015 11:56 AM
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