Posts

Showing posts from April, 2018

My common shortcuts on IntellJ for TDD

Image
Hi everyone! On previous post I wrote about What we need to write fast using TDD . This post is about one section of it. Shortcuts on my IDE. Currently I use IntellJ and I show you the shortcuts which I use for improving my work. List of shortcuts Ctrl + Shift + T - Go to Test/Go to Test Subject - I use it for quick switch between test and production code. Using it, I don't need use mouse to click a package and I don't lose my time for finding a class. In test class Alt + Insert and next Enter - Create test method - a faster way to write a method of test. Ctrl + E - List of recent files. I use it for quick switch between used files. I try not to use a mouse when I write the code. Double shift - next shortcut to switch between all classes. In test class Ctrl + Shift + F10 - running test In tested class Shift + F10 - run previous action - my previous action is almost always test for current written code. F2 - go to next warning or error - this is the best way to g

What You really need to start using TDD

Image
Today I tell you something about tools and things which is being necessary to start writing with TDD. Why? Because If you don't use it, you will lose your motivation. You won't see results and improvement. Finally, you won't use TDD. IDE! Good IDE allows you to increase write tests, switch between code and test, run test, debug and check results. This is important for me, because programmers lost a lot of time by these operations. If you use TDD you will do these operations a lot of time, so you need something to reduce spending time. After wise choose, we can go to another step. Know shortcut To better reduce spend time doing another operation than writes code we need know the shortcut. I know about the begin You can have a problem with remembering it, but I am sure if you use it for two weeks you will use it automatically. I know it from autopsy. If you choose your IDE I think of the internet, you can find a table with shortcut for your IDE. I have on my desk, one f