Testes para Desenvolvedores Delphi – Palestra da Delphi Online Conference

Eu tive a oportunidade de palestrar na Delphi Online Conference, evento realizado no dia 25 de fevereiro de 2010. Palestrei sobre Testes para Desenvolvedores Delphi, e foi uma oportunidade para tratar do assunto Metodologias Ágeis para a comunidade Delphi.

Esta mesma palestra eu apresentei ao vivo na Delphi Conference realizada em 2009.

Falei sobre Manifesto Ágil, princípios do Manifesto Ágil, falei sobre Sistema Toyota de Produção e Lean, falei sobre eXtreme Programming.

Depois entrei para ferramentas e um exemplo de uso. Na parte de ferramentas, falei sobre DUnit, Selenium IDE, Delphi Discover, Want, e inclusive publiquei o exemplo usado no Google Code (projeto Delphi Test Automation). Pretendo seguir trabalhando este exemplo para adicionar mais ferramentas e gerar mais informação para a comunidade.

É importante que todo desenvolvedor saiba trabalhar com diferentes técnicas de teste, exemplo testes de unidade ou testes funcionais. Ainda, que busquem técnicas e ferramentas de automação que levem a maior produtividade.

Afinal, tempo é dinheiro certo?

Não! 🙂

Como já diz o Jaime Wagner, tempo é vida. Então use seu tempo para automatizar ao máximo seu trabalho e invista seu tempo em outras coisas ao invés de ficar horas testando uma aplicação manualmente. Faça certo da primeira vez, construa seu software com qualidade, seja transparente com seu cliente, e trabalhe em equipe.

Bom, você pode fazer download da apresentação ou assistir a mesma online. Ela dura pouco mais de 1h e 10min. Aproveite e qualquer comentário, por favor, colabore, critique e mande feedback.

— Daniel Wildt

en: Introduction to Test Driven Development

So, I have done one presentation about Test Driven Development yesterday, touching TDD concepts and also lots of concepts about Behavior Driven Development (BDD).

There are simple concepts about the test first process. You have to write a test that fails, write code to make the test pass and then refactor your code. Keep the bar green to keep the code clean, remember this.

Repeat this cycle until you don’t have anything else to test for a specific feature.

Looking at a User Story and its acceptance tests, you also have to make sure you are adding business value on every test.

Simple right?

Well, you have to practice.

A lot.

Really.

I’m not kidding.

Believe me.

By the way, don’t leave technical debt behind.

Just for information, currently I manage teams developing in Java (Web), Java (Mobile) and Delphi (Desktop/WebBroker).

Looking at Java Web, I’m starting to teach teams how to use JUnit for automated unit tests, and code coverage with Emma and EclEmma (Eclipse Plug-in).

For Java Mobile, the solution will be based on J2ME Unit and Cobertura for Java ME.

And Delphi, we are going with DUnit and Delphi Discover, a Coverage Tool for Delphi programmers.

And also looking at test automation, both Delphi and Java Web apps will use Selenium to help on automation of web processes.

Well, you can wait more articles on each of those tools and relation to Agile Development and eXtreme Programming practices.

So, remember: you are build tests for prevention of defects. With this you are also building tests to do regression testing.

Keep quality high, always.