{"id":26440,"date":"2022-12-07T12:09:38","date_gmt":"2022-12-07T20:09:38","guid":{"rendered":"https:\/\/coderpad.io\/?post_type=doc&#038;p=26440"},"modified":"2024-08-30T08:09:52","modified_gmt":"2024-08-30T15:09:52","slug":"unit-testing","status":"publish","type":"doc","link":"https:\/\/coderpad.io\/resources\/docs\/unit-testing\/","title":{"rendered":"Unit testing"},"content":{"rendered":"\n<p>The Interview platform supports a variety of unit testing libraries for different languages.<\/p>\n\n\n\n<p>To find the supported libraries for a specific language, first select the language you&#8217;ll be using from the <strong>Languages<\/strong> tab:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20-1024x486.png\" alt=\"The language tab which lists frontend, backend, regular, data, and documentation languages.\" class=\"wp-image-40858\" srcset=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20-1024x486.png 1024w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20-300x143.png 300w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20-768x365.png 768w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20-1536x730.png 1536w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20-18x9.png 18w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-20.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>When available, unit testing info for the frontend and backend frameworks can be found in the <code>README.md<\/code> file.<\/p>\n\n\n\n<p>For all other languages, testing information can be found by selecting the <strong>Language Info<\/strong> option next to the language you want to learn more about:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/d2h1bfu6zrdxog.cloudfront.net\/wp-content\/uploads\/2022\/12\/image-1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"193\" height=\"166\" src=\"https:\/\/d2h1bfu6zrdxog.cloudfront.net\/wp-content\/uploads\/2022\/12\/image-1.png\" alt=\"The Java language options are shown, with &quot;language info&quot; highlighted.\" class=\"wp-image-26448\" srcset=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-1.png 193w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-1-14x12.png 14w\" sizes=\"auto, (max-width: 193px) 100vw, 193px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>For languages that have testing information, the window will look something like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/d2h1bfu6zrdxog.cloudfront.net\/wp-content\/uploads\/2022\/12\/image-2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"715\" src=\"https:\/\/d2h1bfu6zrdxog.cloudfront.net\/wp-content\/uploads\/2022\/12\/image-2.png\" alt=\"Language testing information for Java.\" class=\"wp-image-26451\" style=\"width:334px;height:536px\" srcset=\"https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-2.png 445w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-2-187x300.png 187w, https:\/\/coderpad.io\/wp-content\/uploads\/2022\/12\/image-2-7x12.png 7w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>You can view the language information pages with their respective testing frameworks in the sandbox below.<\/p>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed \"\n\tstyle=\"padding-top: 93.75%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox\" width=\"640\" height=\"600\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n","protected":false},"parent":0,"menu_order":3,"template":"","class_list":["post-26440","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/doc\/26440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":43,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/doc\/26440\/revisions"}],"predecessor-version":[{"id":40860,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/doc\/26440\/revisions\/40860"}],"wp:attachment":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media?parent=26440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}