• Non ci sono risultati.

Méthodes de Test TP 1 — Test-Driven Unit Testing

N/A
N/A
Protected

Academic year: 2021

Condividi "Méthodes de Test TP 1 — Test-Driven Unit Testing"

Copied!
4
0
0

Testo completo

(1)

Méthodes de Test

TP 1 — Test-Driven Unit Testing

Stefano Zacchiroli

[email protected]

Laboratoire PPS, Université Paris Diderot

2013–2014

URL http://upsilon.cc/zack/teaching/1314/methtest/

Copyright © 2013 Stefano Zacchiroli

License Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/

Stefano Zacchiroli (Paris Diderot) Test-Driven Unit Testing 2013–2014 1 / 4

(2)

TDD problem collection

The TDD problems project collects use cases to exercise Test Driven Development:

https://sites.google.com/site/tddproblems/

https://sites.google.com/site/tddproblems/all-problems-1

For this TD you have to:

1

choose a problem you like from the above list

2

validate your choice with me

3

implement it

4

go to 1 Rules:

apply Test-Driven Development

work in pairs using pair programming, 1 switching roles periodically

1

primer at https://en.wikipedia.org/wiki/Pair_programming

Stefano Zacchiroli (Paris Diderot) Test-Driven Unit Testing 2013–2014 2 / 4

(3)

Homework 1 — description

For this part of the course you will be evaluated on several homework assignments.

First homework:

work in pairs

work using a version control system (Git or SVN)

choose 3 or more other exercises from the TDD problems list for each exercise, make a commit at each step of each TDD iteration

ñ

commit after adding the failing test

ñ

commit after making it pass

ñ

commit after refactoring

Stefano Zacchiroli (Paris Diderot) Test-Driven Unit Testing 2013–2014 3 / 4

(4)

Homework 1 — submission

submit a tar.gz archive containing

ñ

the entire VCS history (.git/ for Git; svnadmin dump for SVN)

ñ

a README documenting

«

the chosen exercises

«

the members of the pair

«

instructions to: compile, run, run the test suite

submissions must be made via DidEL at:

http://didel.script.univ-paris-diderot.fr/

claroline/course/index.php?cid=METHTEST Section: Travaux > TP1 — test-driven unit test

deadline: 28 October 2013 (2 weeks from now)

Stefano Zacchiroli (Paris Diderot) Test-Driven Unit Testing 2013–2014 4 / 4

Riferimenti

Documenti correlati

Testing is done while coding, while debugging is done later, Testing is a special kind of coding, while debugging means slowly going through existing code in a painful way and

test suite abstraction used to organize test in test suites assertion API to implement test case oracles to verify outcomes?. test fixture mechanisms to factorize test

Indeed, we can see the persistence effect is increasing in union density, suggesting that, a fragmented coordination with relative poor power of unions and confined

Si estrae una prima pallina, che risulta rossa e non la si rimette nella scatola.. Qual è la probabilità di estrarre un’altra

• insieme di caratteristiche che il codice sorgente può avere e che sono generalmente riconosciute come probabili indicazioni di un difetto di programmazione. • Non

Cognome

II) La domanda è priva di senso, la risposta corretta è quindi la E. Il campo elettrico è il rapporto tra la forza esercitata dal protone su una carica q e la carica stessa; si

Cinesi, giapponesi e tutti gli altri gruppi etnici asiatici che abitano in Italia hanno spesso difficoltà a leggere