{"id":8626,"date":"2022-09-08T07:05:52","date_gmt":"2022-09-08T05:05:52","guid":{"rendered":"https:\/\/yeeply.com\/it\/?p=8626"},"modified":"2023-12-11T10:50:05","modified_gmt":"2023-12-11T08:50:05","slug":"che-cosa-sono-unit-testing-e-come-funzionano","status":"publish","type":"post","link":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/","title":{"rendered":"Che cosa sono le unit testing e come funzionano?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Le <\/span><b>unit testing (<\/b><b>testing d&#8217;unit\u00e0 o testing unitario)<\/b> <span style=\"font-weight: 400;\">sono una forma per poter verificare che una parte del codice funziona correttamente. E\u2019 un procedimento in pi\u00f9 rispetto a chi utilizza un tipo di metodologia di lavoro agile.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Se non sai da dove iniziare, questo articolo \u00e8 giusto per te. Scopri come le unit testing possano aiutarti a <\/span><b>migliorare il risultato finale delle tue applicazioni.<\/b><\/p>\n<div class=\"bt-proyecto\"><a href=\"https:\/\/yeeply.com\/it\/?rel=IT-BT-proyecto-digital#publish-project\" target=\"_blank\">TROVA IL TEAM MIGLIORE PER IL TUO PROGETTO DIGITALE<\/a><\/div>\n<h2><span style=\"font-weight: 400;\">Cosa sono unit testing?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Questi test consistono nel <\/span><b>isolare una parte del codice e comprovare che funziona alla perfezione. <\/b><span style=\"font-weight: 400;\">Sono piccoli test che valutano il comportamento dell&#8217;oggetto e della logica.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">L\u2019unit testing pu\u00f2 essere realizzato durante la fase di sviluppo delle app di software o mobile. Normalmente \u00e8 una pratica che svolgono gli <\/span><b>sviluppatori, <\/b><span style=\"font-weight: 400;\">anche se la possono realizzare anche i <\/span><b>responsabili della QA.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Esiste un mito per gli unit testing. Alcuni sviluppatori sono convinti che sono una perdita di tempo e li evitano per poter risparmiare tempo.<\/span><\/p>\n<p><b>Niente di pi\u00f9 sbagliato.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Con queste riesci a <\/span><b>capire dov\u2019\u00e8 l\u2019errore<\/b><span style=\"font-weight: 400;\"> che, senza gli unit testing, non si potrebbero detettare come i test del sistema, le integrazioni e incluso la versione beta.<br \/>\n<\/span><span style=\"font-weight: 400;\">Utilizzare unit test con regolarit\u00e0 suppone, un risparmio di tempo e denaro..<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">Forse ti interessa: <a href=\"https:\/\/yeeply.com\/it\/blog\/scrum-master-come-diventarlo\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cos\u2019\u00e8 uno Scrum Master e come puoi trasformarti in uno di loro?<\/a><\/span><\/i><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400;\">Motivi per realizzare unit testing<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Se ancora non \u00e8 del tutto chiaro perch\u00e9 devi incorporare questi test al tuo day by day come sviluppatore, ti diamo alcuni motivi:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Gli unit testing dimostrano che la <\/span><b>logica del codice <\/b><span style=\"font-weight: 400;\">\u00e8 in un buon stato e che funzioner\u00e0 in qualsiasi caso.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Aumenta la <\/span><b>leggibilit\u00e0 del codice <\/b><span style=\"font-weight: 400;\">e aiuta gli sviluppatori a conoscere il codice di base e ci\u00f2 che aiuta a fare modifiche rapidamente.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Gli unit testing ben realizzati servono come una <\/span><b>documentazione <\/b><span style=\"font-weight: 400;\">del progetto.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Si realizzando in <\/span><b>pochi millisecondi, <\/b><span style=\"font-weight: 400;\">per questo potrai realizzarne molte e in poco tempo.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-8628 size-full\" title=\"computer con codici programmazione\" src=\"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/programmer_web_developer_coding.jpg\" alt=\"computer con codici programmazione\" width=\"748\" height=\"499\" srcset=\"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/programmer_web_developer_coding.jpg 748w, https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/programmer_web_developer_coding-300x200.jpg 300w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/p>\n<p>Computer con codici unit test. Fonte: <a href=\"https:\/\/www.rawpixel.com\/image\/917644\/free-image-rawpixelcom\" target=\"_blank\" rel=\"noopener noreferrer\">Rawpixel<\/a><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">le unit testing permettono allo sviluppatore di <\/span><b>fattorizzare il codice <\/b><span style=\"font-weight: 400;\">pi\u00f9 avanti e avere la garanzia che il modulo segua funzionando correttamente. Per questo vengono realizzati test per comprovare tutte le funzionalit\u00e0 e metodi, affinch\u00e9 per ogni errore provato sar\u00e0 possibile identificare la causa.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">La <\/span><b>qualit\u00e0 finale del codice <\/b><span style=\"font-weight: 400;\">migliorer\u00e0 in quanto, realizzato continui test, il codice sar\u00e0 pulito e di qualit\u00e0.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Come le unit testing dividono il codice in piccoli frammenti, \u00e8 possibile <\/span><b>provare varie parti del progetto <\/b><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">senza dover aspettare che le altre siano complete.<\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">Cerchi sviluppatori che ti possano aiutare nelle tue unit testing? <\/span><\/i><a href=\"https:\/\/yeeply.com\/it\/\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">Trovali in Yeeply<\/span><\/i><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400;\">Le 3 A dell&#8217;unit testing<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Per poter terminare ottime unit testing, \u00e8 necessario che siano strutturate seguendo le tre A dell Unit Testing. Si tratta di un <\/span><b>concetto fondamentale rispetto a questo tipo di test, <\/b><span style=\"font-weight: 400;\">che descrive un processo composto da 3 parti.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Arrange (organizzare)<\/u><\/span><span style=\"font-weight: 400;\">. Questo primo \u00e8 il primo step delle unit testing. In questa parte si <\/span><b>definiscono i requisiti <\/b><span style=\"font-weight: 400;\">che deve poter realizzare il codice.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Act (attuare)<\/u><\/span><span style=\"font-weight: 400;\">. Questo \u00e8 lo step intermedio dei test, il momento di <\/span><b>esercitare <\/b><span style=\"font-weight: 400;\">il test che dar\u00e0 i risultati da analizzare.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><u>Assert (affermare)<\/u><\/span><span style=\"font-weight: 400;\">. Nell\u2019ultimo step, \u00e8 il momento di verificare che i risultati sono ci\u00f2 che ci aspettavamo. <\/span><b>Se \u00e8 cos\u00ec, si valida e si continua. <\/b><span style=\"font-weight: 400;\">Altrimenti. si corregger\u00e0 l\u2019errore.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_8629\" aria-describedby=\"caption-attachment-8629\" style=\"width: 618px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-8629 size-full\" title=\" arrange act assert grafic\" src=\"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/Unit-testing-3-A.png\" alt=\" arrange act assert grafic\" width=\"618\" height=\"316\" srcset=\"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/Unit-testing-3-A.png 618w, https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/Unit-testing-3-A-300x153.png 300w\" sizes=\"(max-width: 618px) 100vw, 618px\" \/><figcaption id=\"caption-attachment-8629\" class=\"wp-caption-text\">Le tre A dell&#8217;Unit testing. Fonte: Yeeply.<\/figcaption><\/figure>\n<h2><\/h2>\n<h2><span style=\"font-weight: 400;\">Come realizzarli<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Il processo dei unit testing possono essere realizzati manualmente, anche se \u00e8 pi\u00f9 comune <\/span><b>automatizzare il procedimento attraverso vari strumenti.\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Ci sono molte opzioni disponibili, che possono variare in funzione del linguaggio di programmazione che si utilizza. Questi sono alcuni esempi che possono essere utili per i tuoi test.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/xunit.net\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">xUnit<\/span><\/a><span style=\"font-weight: 400;\">: si tratta di uno strumento di unit testing per il framework <\/span><b>.NET<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/junit.org\/junit5\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Junit<\/span><\/a><span style=\"font-weight: 400;\">: \u00e8 un insieme di biblioteche per realizzare unit testing di applicazioni <\/span><b>Java.<\/b><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/nunit.org\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">NUnit<\/span><\/a><span style=\"font-weight: 400;\">: inizialmente portato da JUnit, NUnit 3, \u00e8 stato scritto totalmente per fornirgli nuove caratteristiche e supporto per un\u2019ampia gamma di piattaforma<\/span><b> .NET<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/phpunit.de\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">PHPUnit<\/span><\/a><span style=\"font-weight: 400;\">: ambiente di unit testing nel linguaggio di programmazione <\/span><b>PHP<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">All\u2019utilizzo di questi strumenti, <\/span><b>si codificano i criteri del test <\/b><span style=\"font-weight: 400;\">che verificano se il codice \u00e8 corretto o meno. Durante la fase di esecuzione, lo strumento pu\u00f2 portare qualche errore.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Se ci sono errori gravi, \u00e8 possibile <\/span><b>mantenere unit testing <\/b><span style=\"font-weight: 400;\">che si sarebbero realizzate successivamente.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">Forse ti interessa:\u00a0<\/span><\/i><i>Come garantire il Successo nello Sviluppo di Applicazioni Mobile<\/i><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400;\">TDD e unit testing<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Il <\/span><b>test driven development (TDD) o lo sviluppo condotto per test <\/b><span style=\"font-weight: 400;\">implica sviluppare gli unit testing\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">El <\/span><b><i>test driven development<\/i><\/b><b> (TDD) o desarrollo guiado por pruebas<\/b><span style=\"font-weight: 400;\"> implica desarrollar las pruebas unitarias al quale il software deve essere inviato prima di essere scritto.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In questo modo, lo sviluppo viene eseguito secondo i requisiti stabiliti nel test da superare. L&#8217;obiettivo \u00e8 quello di ottenere un <\/span><b>codice pulito<\/b><span style=\"font-weight: 400;\"> che funzioni.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Con questa metodologia, viene scelto un requisito dalla lista e viene eseguito un test per verificare che non vada a buon fine. Se non fallisce, pu\u00f2 essere perch\u00e9 non \u00e8 stata impostata correttamente o perch\u00e9 la funzione era gi\u00e0 stata implementata.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Il codice viene poi scritto per permettere di superare il test nel modo pi\u00f9 semplice possibile, i test vengono eseguiti e, se tutto \u00e8 corretto, il codice viene<\/span><b> rifattorizzato per rimuovere le parti duplicate.\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">In questo modo \u00e8 possibile cancellare tale requisito dalla lista e procedere con lo sviluppo.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Buone prassi per le unit testing<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Una volta abituati ad eseguire questo tipo di test, ne scoprirete tutti i vantaggi. Tuttavia, se non avete ancora esperienza, vediamo alcuni <\/span><b>esempi di buone pratiche nel unit testing del software.<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Le unit testing dovrebbero essere indipendenti<\/u><\/span><span style=\"font-weight: 400;\">. Se ci sono miglioramenti o cambiamenti nei requisiti, i test non dovrebbero essere influenzati.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Prova solo un codice alla volta<\/u>.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Segui uno schema chiaro<\/u><\/span><span style=\"font-weight: 400;\">. Pu\u00f2 sembrare secondario, ma non lo \u00e8. Essere coerenti anche nel nominare i unit tests.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Qualsiasi cambiamento deve superare il test<\/u><\/span><span style=\"font-weight: 400;\">. Nel caso di una modifica del codice di un modulo, assicurarsi che ci sia un unit test che corrisponda a quel modulo e che questo superi i test prima di cambiare l&#8217;implementazione.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><u>Risolvere i bug identificati durante i test prima di continuare<\/u>. Assicuratevi di effettuare questa correzione prima di procedere alla fase successiva del ciclo di vita dello sviluppo del software.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Non ci si pu\u00f2 aspettare che gli unit testing scoprano tutti gli errori di un software, ma fanno <\/span><b>risparmiare molto tempo<\/b><span style=\"font-weight: 400;\"> rendendo pi\u00f9 facile individuare gli errori.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Potete vedere i numerosi vantaggi di incorporare gli unit test nella vostra routine di sviluppo. <\/span><b>Siete pronti?<\/b><\/p>\n<h2><span style=\"font-weight: 400;\">Trova un team di sviluppo in Yeeply<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Hai in mente un progetto digitale e hai bisogno del supporto di sviluppatori esperti? <\/span><b>In Yeeply ti aiutiamo a trovarli!<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">La nostra piattaforma \u00e8 composta da <\/span><b>professionisti digitali di alta qualit\u00e0<\/b><span style=\"font-weight: 400;\"> che hanno superato il nostro <\/span><a href=\"https:\/\/yeeply.com\/it\/professionisti\/?rel=IT-LNK#certification-process\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">processo di certificazione<\/span><\/a><span style=\"font-weight: 400;\">. Attraverso il nostro algoritmo ci prendiamo cura di trovare il team giusto per il vostro progetto.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Vuoi che ti inviamo un <\/span><b>preventivo personalizzato senza impegno<\/b><span style=\"font-weight: 400;\">? <\/span><a href=\"https:\/\/yeeply.com\/it\/#publish-project?rel=IT-LNK#certification-process\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Parlaci un po&#8217; del tuo progetto<\/span><\/a><span style=\"font-weight: 400;\"> e iniziamo.<\/span><\/p>\n<p><a href=\"https:\/\/yeeply.com\/it\/?rel=IT-BP-proyecto-digital#publish-project\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2020\/04\/IT-CTA-Progetto-Digitale.jpg\" alt=\"Proyecto Digital\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Le unit testing (testing d&#8217;unit\u00e0 o testing unitario) sono una forma per poter verificare che una parte del codice funziona correttamente. E\u2019 un procedimento in &#8230;<\/p>\n","protected":false},"author":35,"featured_media":8627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[334],"tags":[],"class_list":["post-8626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sviluppo-app-mobile"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u25b7 Cosa sono i test unitari (unit testing) e come funzionano?<\/title>\n<meta name=\"description\" content=\"Sai che un unit testing ti far\u00e0 risparmiare un sacco di problemi nel tuo progetto di sviluppo? \u2714\ufe0f Ti spieghiamo come eseguire un unit testing senza problemi.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u25b7 Cosa sono i test unitari (unit testing) e come funzionano?\" \/>\n<meta property=\"og:description\" content=\"Sai che un unit testing ti far\u00e0 risparmiare un sacco di problemi nel tuo progetto di sviluppo? \u2714\ufe0f Ti spieghiamo come eseguire un unit testing senza problemi.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/\" \/>\n<meta property=\"og:site_name\" content=\"Yeeply\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/YeeplyMobile\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-08T05:05:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-11T08:50:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"748\" \/>\n\t<meta property=\"og:image:height\" content=\"493\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lucia Bravo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Yeeply_EN\" \/>\n<meta name=\"twitter:site\" content=\"@Yeeply_EN\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lucia Bravo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/\"},\"author\":{\"name\":\"Lucia Bravo\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#\\\/schema\\\/person\\\/8d7261cb5ed555983c97c4be50b9a191\"},\"headline\":\"Che cosa sono le unit testing e come funzionano?\",\"datePublished\":\"2022-09-08T05:05:52+00:00\",\"dateModified\":\"2023-12-11T08:50:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/\"},\"wordCount\":1156,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yeeply.com\\\/it\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/pruebas-unitarias-de-software.jpg\",\"articleSection\":[\"App\"],\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/\",\"url\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/\",\"name\":\"\u25b7 Cosa sono i test unitari (unit testing) e come funzionano?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yeeply.com\\\/it\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/pruebas-unitarias-de-software.jpg\",\"datePublished\":\"2022-09-08T05:05:52+00:00\",\"dateModified\":\"2023-12-11T08:50:05+00:00\",\"description\":\"Sai che un unit testing ti far\u00e0 risparmiare un sacco di problemi nel tuo progetto di sviluppo? \u2714\ufe0f Ti spieghiamo come eseguire un unit testing senza problemi.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yeeply.com\\\/it\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/pruebas-unitarias-de-software.jpg\",\"contentUrl\":\"https:\\\/\\\/yeeply.com\\\/it\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/pruebas-unitarias-de-software.jpg\",\"width\":748,\"height\":493,\"caption\":\"unit testing per app\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/blog\\\/sviluppo-app-mobile\\\/che-cosa-sono-unit-testing-e-come-funzionano\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/yeeply.com\\\/it\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Che cosa sono le unit testing e come funzionano?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#website\",\"url\":\"https:\\\/\\\/yeeply.com\\\/it\\\/\",\"name\":\"Yeeply\",\"description\":\"A platform for the development of digital projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/yeeply.com\\\/it\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#organization\",\"name\":\"Yeeply\",\"url\":\"https:\\\/\\\/yeeply.com\\\/it\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/yeeply.com\\\/it\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/logo_yeeply_black@2x.png\",\"contentUrl\":\"https:\\\/\\\/yeeply.com\\\/it\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/logo_yeeply_black@2x.png\",\"width\":360,\"height\":120,\"caption\":\"Yeeply\"},\"image\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/YeeplyMobile\\\/\",\"https:\\\/\\\/x.com\\\/Yeeply_EN\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/yeeply\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/it\\\/#\\\/schema\\\/person\\\/8d7261cb5ed555983c97c4be50b9a191\",\"name\":\"Lucia Bravo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ad2f32aab505842d1a9a50778a6a6143a465eb397609099343924c3397dbd02?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ad2f32aab505842d1a9a50778a6a6143a465eb397609099343924c3397dbd02?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ad2f32aab505842d1a9a50778a6a6143a465eb397609099343924c3397dbd02?s=96&d=mm&r=g\",\"caption\":\"Lucia Bravo\"},\"url\":\"https:\\\/\\\/yeeply.com\\\/it\\\/author\\\/lucia-bravo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u25b7 Cosa sono i test unitari (unit testing) e come funzionano?","description":"Sai che un unit testing ti far\u00e0 risparmiare un sacco di problemi nel tuo progetto di sviluppo? \u2714\ufe0f Ti spieghiamo come eseguire un unit testing senza problemi.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/","og_locale":"it_IT","og_type":"article","og_title":"\u25b7 Cosa sono i test unitari (unit testing) e come funzionano?","og_description":"Sai che un unit testing ti far\u00e0 risparmiare un sacco di problemi nel tuo progetto di sviluppo? \u2714\ufe0f Ti spieghiamo come eseguire un unit testing senza problemi.","og_url":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/","og_site_name":"Yeeply","article_publisher":"https:\/\/www.facebook.com\/YeeplyMobile\/","article_published_time":"2022-09-08T05:05:52+00:00","article_modified_time":"2023-12-11T08:50:05+00:00","og_image":[{"width":748,"height":493,"url":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg","type":"image\/jpeg"}],"author":"Lucia Bravo","twitter_card":"summary_large_image","twitter_creator":"@Yeeply_EN","twitter_site":"@Yeeply_EN","twitter_misc":{"Scritto da":"Lucia Bravo","Tempo di lettura stimato":"7 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#article","isPartOf":{"@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/"},"author":{"name":"Lucia Bravo","@id":"https:\/\/yeeply.com\/it\/#\/schema\/person\/8d7261cb5ed555983c97c4be50b9a191"},"headline":"Che cosa sono le unit testing e come funzionano?","datePublished":"2022-09-08T05:05:52+00:00","dateModified":"2023-12-11T08:50:05+00:00","mainEntityOfPage":{"@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/"},"wordCount":1156,"commentCount":0,"publisher":{"@id":"https:\/\/yeeply.com\/it\/#organization"},"image":{"@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#primaryimage"},"thumbnailUrl":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg","articleSection":["App"],"inLanguage":"it-IT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/","url":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/","name":"\u25b7 Cosa sono i test unitari (unit testing) e come funzionano?","isPartOf":{"@id":"https:\/\/yeeply.com\/it\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#primaryimage"},"image":{"@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#primaryimage"},"thumbnailUrl":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg","datePublished":"2022-09-08T05:05:52+00:00","dateModified":"2023-12-11T08:50:05+00:00","description":"Sai che un unit testing ti far\u00e0 risparmiare un sacco di problemi nel tuo progetto di sviluppo? \u2714\ufe0f Ti spieghiamo come eseguire un unit testing senza problemi.","breadcrumb":{"@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#primaryimage","url":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg","contentUrl":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg","width":748,"height":493,"caption":"unit testing per app"},{"@type":"BreadcrumbList","@id":"https:\/\/yeeply.com\/it\/blog\/sviluppo-app-mobile\/che-cosa-sono-unit-testing-e-come-funzionano\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yeeply.com\/it\/"},{"@type":"ListItem","position":2,"name":"Che cosa sono le unit testing e come funzionano?"}]},{"@type":"WebSite","@id":"https:\/\/yeeply.com\/it\/#website","url":"https:\/\/yeeply.com\/it\/","name":"Yeeply","description":"A platform for the development of digital projects","publisher":{"@id":"https:\/\/yeeply.com\/it\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yeeply.com\/it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/yeeply.com\/it\/#organization","name":"Yeeply","url":"https:\/\/yeeply.com\/it\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/yeeply.com\/it\/#\/schema\/logo\/image\/","url":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/05\/logo_yeeply_black@2x.png","contentUrl":"https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/05\/logo_yeeply_black@2x.png","width":360,"height":120,"caption":"Yeeply"},"image":{"@id":"https:\/\/yeeply.com\/it\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/YeeplyMobile\/","https:\/\/x.com\/Yeeply_EN","https:\/\/www.linkedin.com\/company\/yeeply"]},{"@type":"Person","@id":"https:\/\/yeeply.com\/it\/#\/schema\/person\/8d7261cb5ed555983c97c4be50b9a191","name":"Lucia Bravo","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/secure.gravatar.com\/avatar\/1ad2f32aab505842d1a9a50778a6a6143a465eb397609099343924c3397dbd02?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ad2f32aab505842d1a9a50778a6a6143a465eb397609099343924c3397dbd02?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ad2f32aab505842d1a9a50778a6a6143a465eb397609099343924c3397dbd02?s=96&d=mm&r=g","caption":"Lucia Bravo"},"url":"https:\/\/yeeply.com\/it\/author\/lucia-bravo\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",748,493,false],"thumbnail":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software-150x150-1.jpg",150,150,true],"medium":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software-300x198-1.jpg",300,198,true],"medium_large":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",640,422,false],"large":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",640,422,false],"1536x1536":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",748,493,false],"2048x2048":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",748,493,false],"gform-image-choice-sm":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",300,198,false],"gform-image-choice-md":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",400,264,false],"gform-image-choice-lg":["https:\/\/yeeply.com\/it\/wp-content\/uploads\/2019\/09\/pruebas-unitarias-de-software.jpg",600,395,false]},"uagb_author_info":{"display_name":"Lucia Bravo","author_link":"https:\/\/yeeply.com\/it\/author\/lucia-bravo\/"},"uagb_comment_info":0,"uagb_excerpt":"Le unit testing (testing d&#8217;unit\u00e0 o testing unitario) sono una forma per poter verificare che una parte del codice funziona correttamente. E\u2019 un procedimento in ...","_links":{"self":[{"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/posts\/8626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/comments?post=8626"}],"version-history":[{"count":3,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/posts\/8626\/revisions"}],"predecessor-version":[{"id":14525,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/posts\/8626\/revisions\/14525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/media\/8627"}],"wp:attachment":[{"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/media?parent=8626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/categories?post=8626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yeeply.com\/it\/wp-json\/wp\/v2\/tags?post=8626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}