JUnit

JUnit è un framework di unit testing per il linguaggio di programmazione Java. L'esperienza avuta con JUnit è stata importante nella crescita dell'idea di svi

JUnit
JUnit
software
Logo
Logo
Genereframework di unit testing
SviluppatoreErich Gamma e Kent Beck
Ultima versione6.1.3 (7 agosto 2026)
Sistema operativomulitpiattaforma (non in lista)
LinguaggioJava
LicenzaCommon Public License
(licenza libera)
Sito webjunit.org/junit5/

JUnit è un framework di unit testing per il linguaggio di programmazione Java. L'esperienza avuta con JUnit è stata importante nella crescita dell'idea di sviluppo guidato da test (in inglese Test Driven Development), ed è uno di una famiglia di framework di unit testing noti collettivamente come xUnit.[1]

JUnit è stato creato da Kent Beck insieme ad Erich Gamma.[2] Da allora ha ispirato ed è stato modello guida per diversi framework di unit testing per altri linguaggi.

Il framework è attualmente alla versione 5, che è organizzata in 3 sotto-progetti / moduli e necessita di Java versione 8 o più recente.[3]

La versione 4 ha portato modifiche strutturali rispetto alla versione 3, con la quale è incompatibile. Le classi che costituiscono il framework appartengono a package diversi per le versioni 3 e 4; junit.framework fino a 3.8, org.junit dalla 4.[1]

Note

  1. ^ a b (EN) JUnit Release notes, su junit.sourceforge.net (archiviato dall'url originale il 14 aprile 2012).
  2. ^ Robert C. Martin, Clean Code, p. 252.
  3. ^ (EN) Supported Java Versions, su JUnit 5 User Guide, junit.org. URL consultato il 14 gennaio 2024.

Bibliografia

Voci correlate

Collegamenti esterni

  Portale Informatica: accedi alle voci di Wikipedia che trattano di informatica

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.