{"id":7809,"date":"2019-09-19T07:00:29","date_gmt":"2019-09-19T07:00:29","guid":{"rendered":"https:\/\/yeeply.com\/en\/?p=7809"},"modified":"2020-06-16T08:49:50","modified_gmt":"2020-06-16T08:49:50","slug":"what-is-unit-testing","status":"publish","type":"post","link":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/","title":{"rendered":"What is unit testing? How can it be carried out?"},"content":{"rendered":"<p><b>Unit testing<\/b><span style=\"font-weight: 400;\"> is a way to verify that a code snippet works correctly. It\u2019s one of the procedures implemented within an agile work methodology.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you have never dared to carry it out or don\u2019t know where to start, this article is intended for you. Find out how unit testing can help you <\/span><b>improve your application\u2019s end result<\/b><span style=\"font-weight: 400;\">.<\/span><br \/>\n<div class=\"bt-proyecto\"><a class=\"do-not-track\" href=\"https:\/\/yeeply.com\/en\/?rel=EN-BT-proyecto-digital#publish-project\" target=\"_blank\" rel=\"noopener\">FIND THE BEST TEAM FOR YOUR DIGITAL PROJECT<\/a><\/div><\/p>\n<p><b>Index &#8211; What unit testing is and how to carry it out<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><a href=\"#What is unit testing?\"><span style=\"font-weight: 400;\">What is unit testing?<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"#Reasons for carrying out unit testing\"><span style=\"font-weight: 400;\">Reasons for carrying out unit testing<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"#The 3 A\u2019s of unit testing\"><span style=\"font-weight: 400;\">The 3 A\u2019s of unit testing<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"#How to implement the 3 A\u2019s\"><span style=\"font-weight: 400;\">How to imple<span style=\"text-decoration: underline;\">ment the 3 A\u2019s<\/span><\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"#TDD and unit testing\"><span style=\"font-weight: 400;\">TDD and unit testing<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"#Good practices for unit testing\"><span style=\"font-weight: 400;\">Good practices for unit testing<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"#Find your development team in Yeeply\"><span style=\"font-weight: 400;\">Find your development team in Yeeply<\/span><\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2 id=\"What is unit testing?\"><b>What is unit testing?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Unit testing consists of <\/span><b>isolating a part of the code and verifying that it works perfectly<\/b><span style=\"font-weight: 400;\">. It involves small tests that validate the behaviour of an object and the logic behind the code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Unit testing is usually carried out during the development stage of mobile or software applications. These tests are normally carried out by <\/span><b>developers<\/b><span style=\"font-weight: 400;\"> although, for all practical purposes, they can also be carried out by <\/span><b>QA assurance managers<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There is somewhat of a mystery shrouding unit testing. Some developers are convinced that these tests are a waste of time and avoid them altogether believing they\u2019ll be saving time.<\/span><\/p>\n<p><b>There\u2019s nothing further from reality.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">By carrying them out, <\/span><b>errors can be detected much earlier<\/b><span style=\"font-weight: 400;\"> \u2212 errors which, without unit testing, would not be detected until more advanced stages such as system, integration or even beta testing.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Performing unit testing regularly ultimately means saving time and money.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">You may be interested in: <\/span><\/i><a href=\"https:\/\/yeeply.com\/en\/blog\/what-is-a-scrum-master-how-to-become-one\/\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">What is a scrum master and how can you become one?<\/span><\/i><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"Reasons for carrying out unit testing\"><b>Reasons for carrying out unit testing<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">If you are still not sure why you should incorporate unit testing into your everyday life as a developer, here are some reasons to do so:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Unit testing reveals if the <\/span><b>logic behind the code<\/b><span style=\"font-weight: 400;\"> is appropriate and will work in all cases.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">It boosts the <\/span><b>code\u2019s readability<\/b><span style=\"font-weight: 400;\"> and helps developers understand the base code, making it easier to implement changes faster.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Well-conducted unit testing is also good as project <\/span><b>documentation<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The tests are carried out in just over <\/span><b>a few milliseconds<\/b><span style=\"font-weight: 400;\">, so you can perform hundreds of them within a very short time.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><em>Related content: <a href=\"https:\/\/yeeply.com\/en\/blog\/importance-qa-phase-app-testing\/\" target=\"_blank\" rel=\"noopener noreferrer\">Why is the QA phase important for app testing?<\/a><\/em><\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-7734 size-full\" title=\"computer\" src=\"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/programmer_web_developer_coding.jpg\" alt=\"computer\" width=\"748\" height=\"499\" srcset=\"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/programmer_web_developer_coding.jpg 748w, https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/programmer_web_developer_coding-300x200.jpg 300w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Unit testing allows the developer <\/span><b>to refactor the code<\/b><span style=\"font-weight: 400;\"> later on and ensure that the module keeps on working properly. Test cases are written to this effect for all functions and methods so that errors may be quickly identified and repaired every time any of them is created by the introduction of a change in the code.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The <\/span><b>code\u2019s final quality<\/b><span style=\"font-weight: 400;\"> will improve because it will ultimately be a clean high-quality code due to this continuous testing.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Since unit testing divides the code into small snippets or fragments, it\u2019s possible <\/span><b>to test different parts of the project<\/b><span style=\"font-weight: 400;\"> without having to wait for other parts to be completed.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">Are you looking for developers to help you with your unit testing? <\/span><\/i><a href=\"https:\/\/yeeply.com\/en\/?rel=EN-LNK\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">Find them in Yeeply.<\/span><\/i><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"The 3 A\u2019s of unit testing\"><b>The 3 A\u2019s of unit testing<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">To perform fitting unit tests, these must be structured following the three A\u2019s of unit testing. The three A\u2019s of unit testing make up a <\/span><b>fundamental concept regarding this kind of tests<\/b><span style=\"font-weight: 400;\">, describing a three-step process.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Arrange<\/span><\/span><span style=\"font-weight: 400;\">. It\u2019s the first step in unit testing. This step defines <\/span><b>the requirements<\/b><span style=\"font-weight: 400;\"> that must be met by the code.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Act<\/span><\/span><span style=\"font-weight: 400;\">. It\u2019s the intermediate step of the tests: the moment when the <\/span><b>test<\/b><span style=\"font-weight: 400;\"> is run, yielding the results that you will subsequently have to analyse.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Assert<\/span><\/span><span style=\"font-weight: 400;\">. In this last step, the results will have to be checked to see if they are as expected. <\/span><b>If this is the case, it gets validated and you can carry on<\/b><span style=\"font-weight: 400;\">. If not, any possible errors will have to be corrected until they stop showing up.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-7815 size-full\" title=\"graphics \" src=\"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/Unit-testing-3-A.png\" alt=\"graphics \" width=\"618\" height=\"316\" srcset=\"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/Unit-testing-3-A.png 618w, https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/Unit-testing-3-A-300x153.png 300w\" sizes=\"(max-width: 618px) 100vw, 618px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3 id=\"How to implement the 3 A\u2019s\"><strong>How to implement the 3 A\u2019s<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">The unit testing process can be carried out manually, although it\u2019s more common to <\/span><b>automate the procedure by means of certain tools<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are many options available, which vary depending on the programming language being used. The following are some examples of this kind of tools, which will help you out with the testing.<\/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;\">: it\u2019s a unit testing tool to be used on the <\/span><b>.NET<\/b><span style=\"font-weight: 400;\"> framework.<\/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;\">: it\u2019s a set of libraries for unit testing on <\/span><b>Java<\/b><span style=\"font-weight: 400;\"> applications.<\/span><\/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;\">: NUnit 3 \u2212 which was initially ported from JUnit \u2212 has been completely rewritten to provide it with new features and support for a wide range of <\/span><b>.NET<\/b><span style=\"font-weight: 400;\"> platforms.<\/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;\">: it\u2019s a unit testing environment for the <\/span><b>PHP<\/b><span style=\"font-weight: 400;\"> programming language.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">When using these tools, <\/span><b>the criteria that will verify whether the code is correct or not are coded in the test<\/b><span style=\"font-weight: 400;\">. Then, during the execution stage, the tool will detect which tests have revealed the presence of errors in the code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If any of these errors are serious, you may <\/span><b>stop any subsequent tests<\/b><span style=\"font-weight: 400;\"> that were to be performed.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">You may be interested in: <\/span><\/i><a href=\"https:\/\/yeeply.com\/en\/blog\/mobile-app-development-how-to-guarantee-success\/\" target=\"_blank\" rel=\"noopener noreferrer\"><i><span style=\"font-weight: 400;\">How to ensure that your mobile application development is successful<\/span><\/i><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"TDD and unit testing\"><b>TDD and unit testing<\/b><\/h2>\n<p><b>Test-driven development (TDD)<\/b><span style=\"font-weight: 400;\"> involves developing the unit testing procedures to be performed on the piece of software before writing the software\u2019s code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Development is, thus, carried out according to the requirements that have been established in the test that must be passed by the code. The goal is to get a <\/span><b>clean code<\/b><span style=\"font-weight: 400;\"> that works.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When following this methodology, a requirement is chosen from a list of requirements and a test is set out and performed to check what might be going wrong. If there\u2019s nothing going wrong, it may be either because the test wasn\u2019t set out correctly to begin with or because the function to meet the requirement is already well implemented.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The code that enables passing the test by the simplest possible means is then written down. The tests are then performed again and, if everything goes right, <\/span><b>the code is ultimately refactored in order to eliminate duplicate parts<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This way you\u2019ll be able to tick that particular requirement off from the list and move ahead with the development process.<\/span><\/p>\n<h2 id=\"Good practices for unit testing\"><b>Good practices for unit testing<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">You will discover all the advantages of unit testing once you get used to performing this kind of tests. However, let\u2019s have a look at some <\/span><b>examples of good practices for software unit testing<\/b><span style=\"font-weight: 400;\"> just in case you are still not fully acquainted with the matter.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Unit tests should be independent<\/span><\/span><span style=\"font-weight: 400;\">. Unit tests should remain unaffected should any kind of improvement or change in the requirements occur.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Test only one code snippet at a time<\/span><\/span><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Follow a clear outline<\/span><\/span><span style=\"font-weight: 400;\">. This may seem incidental to other practices, but it is not. Be consistent when naming your unit tests.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Any change implemented needs to pass the tests<\/span><\/span><span style=\"font-weight: 400;\">. If there\u2019s a change in the code of any of the modules, make sure that there are unit tests relevant to such a module and that such a module passes the tests before fully implementing the change.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Fix any bugs that may have been identified during the tests before carrying on<\/span><\/span><span style=\"font-weight: 400;\">. Make sure to get this right before carrying on to the next stage of the software development life cycle.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"text-decoration: underline;\">Get used to performing tests regularly while programming<\/span><\/span><span style=\"font-weight: 400;\">. The more code you write without testing, the more paths you will have to check for possible errors.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">You can\u2019t expect unit testing to reveal all the errors that a piece of software might contain, but it does <\/span><b>save you a lot of time<\/b><span style=\"font-weight: 400;\"> by making it easier to pinpoint errors.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As you can see, there are multiple advantages to be obtained from incorporating unit testing into your everyday development work. <\/span><b>Are you ready?<\/b><\/p>\n<h2 id=\"Find your development team in Yeeply\"><b>Find your development team in Yeeply<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Do you have a digital project in mind and need support from experienced developers? <\/span><b>Yeeply can help you find them!<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Our platform consists of <\/span><b>highly experienced and qualified digital professionals<\/b><span style=\"font-weight: 400;\"> who have passed our <\/span><a href=\"https:\/\/yeeply.com\/en\/professionals\/?rel=EN-LNK#certification-process\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">certification process<\/span><\/a><span style=\"font-weight: 400;\">. Our algorithm we\u2019ll help us find the right team for your project.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Please let us know if you want us to send you a <\/span><b>customised quote without any obligation<\/b><span style=\"font-weight: 400;\">. <\/span><a href=\"https:\/\/yeeply.com\/en\/?rel=EN-LNK#publish-project\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Tell us a little about your project<\/span><\/a><span style=\"font-weight: 400;\"> and we\u2019ll get started.<\/span><\/p>\n<p><a href=\"https:\/\/yeeply.com\/en\/?rel=EN-BP-proyecto-digital#publish-project\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2020\/04\/EN-cta-blogpost-proyecto-digital.jpg\" alt=\"Proyecto Digital\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unit testing is a way to verify that a code snippet works correctly. It\u2019s one of the procedures implemented within an agile work methodology.\u00a0 If &#8230;<\/p>\n","protected":false},"author":2,"featured_media":7811,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[498],"tags":[],"class_list":["post-7809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends-skills"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is unit testing? How can it be carried out?<\/title>\n<meta name=\"description\" content=\"Did you know that unit testing will avoid lots of problems for your development project? We will explain how to carry out a smooth unit testing.\" \/>\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\/en\/blog\/trends-skills\/what-is-unit-testing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is unit testing? How can it be carried out?\" \/>\n<meta property=\"og:description\" content=\"Did you know that unit testing will avoid lots of problems for your development project? We will explain how to carry out a smooth unit testing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/\" \/>\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=\"2019-09-19T07:00:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-16T08:49:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-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=\"Yeeply\" \/>\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=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yeeply\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/\"},\"author\":{\"name\":\"Yeeply\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#\\\/schema\\\/person\\\/c7927839158c47143448f3bcdaf7cc14\"},\"headline\":\"What is unit testing? How can it be carried out?\",\"datePublished\":\"2019-09-19T07:00:29+00:00\",\"dateModified\":\"2020-06-16T08:49:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/\"},\"wordCount\":1413,\"publisher\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yeeply.com\\\/en\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/unit-testing-software.jpg\",\"articleSection\":[\"Trends &amp; Skills\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/\",\"url\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/\",\"name\":\"What is unit testing? How can it be carried out?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yeeply.com\\\/en\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/unit-testing-software.jpg\",\"datePublished\":\"2019-09-19T07:00:29+00:00\",\"dateModified\":\"2020-06-16T08:49:50+00:00\",\"description\":\"Did you know that unit testing will avoid lots of problems for your development project? We will explain how to carry out a smooth unit testing.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yeeply.com\\\/en\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/unit-testing-software.jpg\",\"contentUrl\":\"https:\\\/\\\/yeeply.com\\\/en\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/unit-testing-software.jpg\",\"width\":748,\"height\":493,\"caption\":\"chemistry\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/blog\\\/trends-skills\\\/what-is-unit-testing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/yeeply.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is unit testing? How can it be carried out?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/yeeply.com\\\/en\\\/\",\"name\":\"Yeeply\",\"description\":\"A platform for the development of digital projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/yeeply.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#organization\",\"name\":\"Yeeply\",\"url\":\"https:\\\/\\\/yeeply.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/yeeply.com\\\/en\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/logo_yeeply_black@2x.png\",\"contentUrl\":\"https:\\\/\\\/yeeply.com\\\/en\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/logo_yeeply_black@2x.png\",\"width\":360,\"height\":120,\"caption\":\"Yeeply\"},\"image\":{\"@id\":\"https:\\\/\\\/yeeply.com\\\/en\\\/#\\\/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\\\/en\\\/#\\\/schema\\\/person\\\/c7927839158c47143448f3bcdaf7cc14\",\"name\":\"Yeeply\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f13a8a35567805732422f808376743c5cc1b8918b3dd8f2da231a8306df22006?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f13a8a35567805732422f808376743c5cc1b8918b3dd8f2da231a8306df22006?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f13a8a35567805732422f808376743c5cc1b8918b3dd8f2da231a8306df22006?s=96&d=mm&r=g\",\"caption\":\"Yeeply\"},\"url\":\"https:\\\/\\\/yeeply.com\\\/en\\\/author\\\/yeeply\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is unit testing? How can it be carried out?","description":"Did you know that unit testing will avoid lots of problems for your development project? We will explain how to carry out a smooth unit testing.","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\/en\/blog\/trends-skills\/what-is-unit-testing\/","og_locale":"en_US","og_type":"article","og_title":"What is unit testing? How can it be carried out?","og_description":"Did you know that unit testing will avoid lots of problems for your development project? We will explain how to carry out a smooth unit testing.","og_url":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/","og_site_name":"Yeeply","article_publisher":"https:\/\/www.facebook.com\/YeeplyMobile\/","article_published_time":"2019-09-19T07:00:29+00:00","article_modified_time":"2020-06-16T08:49:50+00:00","og_image":[{"width":748,"height":493,"url":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg","type":"image\/jpeg"}],"author":"Yeeply","twitter_card":"summary_large_image","twitter_creator":"@Yeeply_EN","twitter_site":"@Yeeply_EN","twitter_misc":{"Written by":"Yeeply","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#article","isPartOf":{"@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/"},"author":{"name":"Yeeply","@id":"https:\/\/yeeply.com\/en\/#\/schema\/person\/c7927839158c47143448f3bcdaf7cc14"},"headline":"What is unit testing? How can it be carried out?","datePublished":"2019-09-19T07:00:29+00:00","dateModified":"2020-06-16T08:49:50+00:00","mainEntityOfPage":{"@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/"},"wordCount":1413,"publisher":{"@id":"https:\/\/yeeply.com\/en\/#organization"},"image":{"@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#primaryimage"},"thumbnailUrl":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg","articleSection":["Trends &amp; Skills"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/","url":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/","name":"What is unit testing? How can it be carried out?","isPartOf":{"@id":"https:\/\/yeeply.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#primaryimage"},"image":{"@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#primaryimage"},"thumbnailUrl":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg","datePublished":"2019-09-19T07:00:29+00:00","dateModified":"2020-06-16T08:49:50+00:00","description":"Did you know that unit testing will avoid lots of problems for your development project? We will explain how to carry out a smooth unit testing.","breadcrumb":{"@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#primaryimage","url":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg","contentUrl":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg","width":748,"height":493,"caption":"chemistry"},{"@type":"BreadcrumbList","@id":"https:\/\/yeeply.com\/en\/blog\/trends-skills\/what-is-unit-testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yeeply.com\/en\/"},{"@type":"ListItem","position":2,"name":"What is unit testing? How can it be carried out?"}]},{"@type":"WebSite","@id":"https:\/\/yeeply.com\/en\/#website","url":"https:\/\/yeeply.com\/en\/","name":"Yeeply","description":"A platform for the development of digital projects","publisher":{"@id":"https:\/\/yeeply.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yeeply.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/yeeply.com\/en\/#organization","name":"Yeeply","url":"https:\/\/yeeply.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yeeply.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/05\/logo_yeeply_black@2x.png","contentUrl":"https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/05\/logo_yeeply_black@2x.png","width":360,"height":120,"caption":"Yeeply"},"image":{"@id":"https:\/\/yeeply.com\/en\/#\/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\/en\/#\/schema\/person\/c7927839158c47143448f3bcdaf7cc14","name":"Yeeply","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f13a8a35567805732422f808376743c5cc1b8918b3dd8f2da231a8306df22006?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f13a8a35567805732422f808376743c5cc1b8918b3dd8f2da231a8306df22006?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f13a8a35567805732422f808376743c5cc1b8918b3dd8f2da231a8306df22006?s=96&d=mm&r=g","caption":"Yeeply"},"url":"https:\/\/yeeply.com\/en\/author\/yeeply\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",748,493,false],"thumbnail":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software-150x150-1.jpg",150,150,true],"medium":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software-300x198-1.jpg",300,198,true],"medium_large":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",640,422,false],"large":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",640,422,false],"1536x1536":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",748,493,false],"2048x2048":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",748,493,false],"gform-image-choice-sm":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",300,198,false],"gform-image-choice-md":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",400,264,false],"gform-image-choice-lg":["https:\/\/yeeply.com\/en\/wp-content\/uploads\/2019\/09\/unit-testing-software.jpg",600,395,false]},"uagb_author_info":{"display_name":"Yeeply","author_link":"https:\/\/yeeply.com\/en\/author\/yeeply\/"},"uagb_comment_info":0,"uagb_excerpt":"Unit testing is a way to verify that a code snippet works correctly. It\u2019s one of the procedures implemented within an agile work methodology.\u00a0 If ...","_links":{"self":[{"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/posts\/7809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/comments?post=7809"}],"version-history":[{"count":0,"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/posts\/7809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/media\/7811"}],"wp:attachment":[{"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/media?parent=7809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/categories?post=7809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yeeply.com\/en\/wp-json\/wp\/v2\/tags?post=7809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}