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: 

Unit Testing In Enhancements

Former Member
0 Kudos

Hi

I am very much new to ABAP . Everywhere I found how to create unit tests and how to work with them. but  I can't find any guidelines when to use Unit tests and in which context? Can  I use the Unit tests in Enhancements? if so, how to use unit tests for BADI implementation?  Is it really beneficial to use Unit tests in BADI?Can any one throw some light?

1 REPLY 1

roberto_vacca2
Active Contributor
0 Kudos

Hi

Unit tests is a Big Word for Big Manager, but its real mean is simple: Does my application do what I want it to do?

The integration test is about the context  where you put your application.

So the answer is:

Yes, you can put unit tests in enhancement;

You can use unit tests for BADI implementation using relevant transactions.

You can write an example and probably you'll have an answer.

Hope to help