Posts
45
Comments
79
Trackbacks
12
Red, Green, Refactor...

Non avete capito di cosa sto parlando? Vuol dire che non avete seguito il suggerimento del mio post precedente , o peggio ancora non seguite il mio blog , ma questo, allora, è un altro discorso.

Comunque per tornare a noi, nel titolo ho semplicemente riassunto quello che, in prima battuta, mi è sembrato essere lo scheletro su cui si basa TDD. Per meglio comprendere quello che voglio dire riporto (virgolettando) uno stralcio dell'articolo da cui ha preso inizio la mia curiosità verso questa nuova metodologia di sviluppo:

"...

  1. Write a test.
  2. Run the test. It fails to compile because the code you're trying to test doesn't even exist yet! (This is the same thing as failing.) 
  3. Write a bare-bones stub to make the test compile.
  4. Run the test. It should fail. (If it doesn't, then the test wasn't very good.) 
  5. Implement the code to make the test pass.
  6. Run the test. It should pass. (If it doesn't, back up one step and try again.)
  7. Start over with a new test!

..."

Ancora non si è capito a cosa mi riferisco con 'Red" e "Green"? Non credo proprio...

...sovvertiamo le gerarchie...
powered by IMHO 1.3
posted on venerdì 17 novembre 2006 16.53 Print
Comments
Gravatar
# re: Red, Green, Refactor...
Emanuele DelBono
17/11/2006 21.29
  
Fa piacere sapere che "ti ha preso bene" :-D
Gravatar
# re: Red, Green, Refactor...
Michele Bersani
18/11/2006 17.13
  
Adesso metti la GIF animata sul blog :-)
Guarda la mia...

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 7 and 7 and type the answer here:
News
Habemus Logo...

Habemus Logo...il logo del mio blog



Il mio profilo su LinkedIn

View Alessandro Melchiori's profile on LinkedIn



i like it...

Xobni outlook add-in for your inbox