14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Testing and Troubleshooting 1.3

Figure 1.19 Splitting the Source Code Editor

Such improvements apply to all programming languages used by Eclipse. Because

ABAP is now a member of that happy family, you can take advantage of such

improvements the instant they come out without waiting for an upgrade of your

backend system.

1.3 Testing and Troubleshooting

All throughout this book, you will see a recurring theme: new ABAP tools allow

you to better test your programs, debug them, and analyze what went horribly

wrong. This section examines each of these three areas in turn and discusses what

ABAP in Eclipse brings to the table.

1.3.1 Unit Testing Code Coverage

In Chapter 3, you will learn about unit testing in ABAP and test-driven development

as a philosophy in some detail. Rather than getting ahead of things and discussing

why unit tests are a good thing (t hey are; they are the best thing in the

world), this section will instead talk about how ABAP in Eclipse confronts two of

the main problems with writing unit tests.

Problem 1: Creating Test Methods is Difficult

As you’ll see, in SE80 there is a wiza rd to create test methods from your real

methods. However, that’s the wrong wa y around—you want to create the test

methods first.

63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!