The importance of Test Automation for Business Time to Market

Right after I woked up today, I read this Dan North’s tweet:

Screenshot from 2018-09-23 13:48:42

Trunk-based development makes the development teams integrate and test on a single code, which is the trunk (or master in Git). It is the base for Continuous Integration and Continuous Delivery. This approach brings software releases early, reducing time to market. At the extreme, Lean Startups.

Two weeks ago I was coaching an agile team for the first time, they use feature branches, having a slow cadence of deliveries. They are working on a single product with other three teams in their organization, plus other three organizations. In this case, code integration is a mess and its code is fragile. After a short time, business cannot have fast time to market anymore.

So what is missing?

It is virtually impossible having trunk-based development without test automation. When you need to integrated code, you need to test the feature and every thing related. So doing it manually is insanity. Manual testing can be easy in the beginning, but the software becomes more and more complex. You need test automation.

First of all, your team have to understand the need of test automation. Secondly, they have to learn and practice test automation. Why not try coding dojos or mob programming?

Based on the Redundancy principle of eXtreme Programming, your team can automate tests on critical features, difficult problems, so it can be approached in many ways. Developers focus on unit and integration code mostly, even functional tests. Testers automate functional and many other types of tests. They help each other. There is no right division on that.

Keep something in your mind: “Legacy code is simply code without tests” by Michael Feathers. So every code you commit without tests, it is legacy code.

So cheers for good practices on software development…

Dionatan Moura (me, left) and Dan North (BDD creator, right) in the conference Agile on the Beach 2017. Falmouth, England.


7 Secrets for Techies to Become More Productive

Inside an environment highly demanding with frequent interruptions, people who work with technology need to be careful with their productivity. For that reason, I’m revealing seven secrets from my own experience. I hope they can be useful for you too.

Secret #1. Have a purpose

Firstly, do you really need to be more productive? Be more productive without a purpose is like a boat travelling on the high sea, going faster to anywhere. With a good purpose, your productivity will flow. Describe a purpose using objectives with goals. An objective is qualitative, like to work with new technologies to grow up in your company. A goal is quantitative and needs a deadline, like read three books of agile software development in the next two months. Each objective has goals, and each goal will be divided in tasks.

Secret #2. Work on a prioritized list of tasks

Make a list of all tasks that you need for your goals. How to prioritize tasks? Look to the importance and the urgency of each task. You can use apps running on the cloud to automatize your lists, like,, and

Secret #3. Visualize your progress

You will need small rewards, day by day, visualizing your work done. For that, you can use a task board, also called kanban board. A good app on the cloud is at

Secret #4. Give the next step soon

Sometimes, you have so many important tasks to do that you might prefer to procrastinate. So, give the next step soon. Don’t wait a perfect moment. Just pull a task and start. Task by task, you will be rewarded with the feeling of accomplishment and motivation.

Secret #5. More focus

Focus is the key to be high productive. It happens when you use all of your capability for only one task. For this, use short periods of times (15-90min) to have high focus, avoiding at most anything that can interrupt or distract you. A simple and powerful technique for that is the Pomodoro Technique. One Pomodoro is a period of 25 minutes to work in one task each time, avoiding all distractions and interruptions. Set an alarm for each Pomodoro, you can use the alarm in your smartphone. Between two Pomodoros, take a short break of 3-5 minutes. Every four Pomodoros, take a long break of 15-30 minutes. There are some nice apps for that like or

Secret #6. Take care of your energy

Yes, even techies need to care about the energy. Your mental and physical energies are the fuel of your productivity. So care about your nutrition, your hydration, your sleep, your body doing  stretching and physical exercises, mainly the aerobic ones. You might boost your mind with meditation or mindfulness. If you have never meditated you might try the, or

Secret #7. Productive habits and routine

You need discipline to achieve high productivity in a short term. However, for a long time, you will need to care about your habits and your routine. Use your discipline to make productive habits, starting to build a routine during the first weeks. To acquire new and more productive habits is a process that might require some effort and time.

Top Secret #8

Yes, a top secret. Be resilient! Sometimes everything seems to go wrong for your productivity among interruptions and distractions. Don’t give up, persist! Face it like a challenge.


Image by Matthias Ripp, under license Attribution 2.0 Generic (CC BY 2.0).

TDD is a practice like swimming

A reader of our eXtreme Programming book asked us a guide to move from 0% TDD programming to 100% (or almost) TDD programming. But, there’s no manual that will really teach TDD, because it’s a practice. We could use a metaphor to explain it, TDD is like swimming, an activity that we practice.

Yes, TDD can be very hard at first time. Like swimming, you might not have enough breathing discipline, getting tired faster and giving it up. And after say “I didn’t like swimming, swimming is not for me”.

As a swimmer needs to jump in the water, a programmer needs to start with a failing test, write code until the test works, and refactor. And repeat these steps a lot of times. It’s a cycle, it’s a mantra:

TDD mantra: write a failing Test, Code until pass the test, so Refactor.

After a lot of TDD cycles, you will be understanding how to practice TDD. So, please, jump in the water and enjoy TDD.

— Thanks to Guilherme Motta for the review.

Lean para Potencializar a Qualidade no Software – Palestra na InfoQ Brasil

Saiu na InfoQ Brasil a palestra que fiz na trilha de Testes do TDC 2014! Nesta palestra, falo de como o Lean pode potencializar a Qualidade no Software. Segue o link:

Métodos Ágeis para Desenvolvimento de Software Livre

O “Eureka!” de relacionar métodos ágeis e software livre veio no FISL (Fórum Internacional de Software Livre) no ano de 2013, enquanto eu assistia uma palestra no evento. Dois anos depois, no FISL16, estarei apresentando com a Jamile Alves a palestra métodos ágeis para o desenvolvimento de software livre. Falaremos de Lean Software Development, Kanban, Scrum e eXtreme Programming! 😀

Esses são os slides da palestra:

Conheça mais sobre o livro de eXtreme Programming

livro xp

Link para o livro

Lean Thinking: Mentalidade Enxuta para Desenvolvimento Ágil de Software

Qual a relação do Pensamento Enxuto e o Desenvolvimento Ágil de Software? Posso dizer que possuem a mesma essência. 🙂 Na Quarta do Conhecimento na PROCERGS em abril de 2015, a Jamile Alves e eu palestramos sobre Lean Thinking, Mentalidade Enxuta para Desenvolvimento Ágil de Software, fazendo a relação entre o mundo Lean e o mundo Ágil.

Seguem o vídeo compacto da palestra:

E os slides:

“Be lean, be agile!”

Conheça mais sobre o livro de eXtreme Programming

livro xp

Link para o livro

XP Playing Cards: aprendendo eXtreme Programming com muita diversão!

Que tal aprender eXtreme Programming (XP) de um modo bem divertido?

20150420_094518Em 2001, Joshua Kerievsky (Industrial Logic) criou um um baralho de cartas para jogos de XP. Depois de 13 anos, em 2014, a Jamile Alves e eu traduzimos e adaptamos essas cartas para o português, para realizar dinâmicas em turmas do curso de XP, facilitando a leitura aos alunos (e claro, cuidando da relíquia do baralho original da Industrial Logic que ganhei de presente do Rafael Helm).

Tipos das cartas

As cartas são de três tipos:

  • P – Carta de Problema
  • S – Carta de Solução
  • V – Carta de Valor
Screenshot from 2015-05-05 23:10:31
Ilustração das Cartas de Valores.

Baralho em PT-BR para download!

Junto à Industrial Logic, tornamos as cartas traduzidas para PT-BR livres para serem distribuídas, num formato PDF imprimível. Imprimimos numa impressora a laser colorida com uma folha mais grossa que a de ofício, ficou muito legal, é a primeira foto desse post.

Para fazer o download o arquivo do baralho de cartas em PDF, basta acessar:

Diversos jogos!

Existem ótimos jogos que podem ser realizados com essas cartas. O jogo que venho utilizando no curso de XP é o de associar soluções a um problema (variação do Explanations). A turma é dividida em grupos pequenos, distribuindo-se as Cartas de Solução igualmente para cada grupo. O facilitador lê uma Carta de Problema, e então o primeiro aluno que falar uma solução (e explicar, se necessário) que possui, descarta a carta. Ganha o grupo que zerar suas cartas de solução. Esse é um jogo que leva uns 45 minutos, com muita diversão. Mas o que mais interessa é que todos reconheçam o porquê de uma prática estar relacionada (ou não) a um problema.

Quer saber mais sobre os jogos da Industrial Logic? Veja no link:

Baralho autografado!

Ah, e no Agile Brazil 2014 eu levei as cartas para tirar foto com o Alexandre Freire, e autografar o baralho, óbvio (haha)!

20141106_123357Bom, esses baralhos viraram relíquia, mas espero que o formato digital seja útil para quem quiser aplicar em times e em cursos para continuar disseminando o eXtreme Programming! 🙂

Conheça mais sobre o livro de eXtreme Programming

livro xp

Link para o livro