From the point of view of TDD, Intellij Idea

xiaoxiao2021-03-06  42

Test-Driven Developments referred to as TDD, which is the core development of software development, and the test running in software development engineering, TDD is also one of the cores of XP (extreme programming). For Java programmers, you may think that JUnit, you can write TestCase, but behind it, Refactor (Reconstruction) and INTENTION Programming play a very important role.

Reconstruction is closely related to the two aspects and TDD:

1 We use as simple as possible to let the test passed, in which we need to introduce the reconstruction of the code.

2 We must use reconstruction means in software development, and TDD can build security nets for reconstruction.

In the Intellij IDEA environment, the reconstruction can be said to be performed, in fact test code is also code, of course, the code management is involved, the test code is stripping the easiest and available, and the reconstruction will play a big role in this process.

One main idea of ​​intent program is no longer represented by a simple ASCII text, but as an active source that can interact with the programmer, is a graphical data structure with programming behavior. To program another exciting aspect is to implement and use the domain specific abstraction, as intention, these intentions will be called in programming. In Intellij Idea, intended programming is implemented by INTENTION Actions, each Action will understand your intentions. INTETION Actions mainly provides the following two functions: fixes errors and provide programming shortcuts.

In TDD development, when we write test code, the function code that may be needed has not yet existed. At this time, we can call Action to fix these errors, and the programming shortcuts provided by the intent programming can quickly create and implement function code, This is very helpful for improving TDD, regardless of the way of development, efficiency is always very necessary.

Finally, Intellij Idea supports JUnit, Idea supports JUnit's support, convenientness can say more than other tools. In automated testing, IDEA can easily integrate CruiseControl, third-party UnitTest plugins can easily create a JUnit TestCase, and is very fast in terms of the navigation between the test class and the test class.

转载请注明原文地址:https://www.9cbs.com/read-54636.html

New Post(0)