{"id":19407,"date":"2024-05-07T11:40:54","date_gmt":"2024-05-07T15:40:54","guid":{"rendered":"https:\/\/montclair.wordcamp.org\/2024\/?post_type=wcb_session&#038;p=19407"},"modified":"2024-05-20T14:30:25","modified_gmt":"2024-05-20T18:30:25","slug":"introduction-to-unit-tests","status":"publish","type":"wcb_session","link":"https:\/\/montclair.wordcamp.org\/2024\/session\/introduction-to-unit-tests\/","title":{"rendered":"Introduction to Unit Tests"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Units tests are extra lines of code that check to see whether or not the rest of the code we&#8217;ve written behaves the way we want it to. While it might seem paradoxical that writing more code can reduce development time, it&#8217;s true. Writing unit tests has made me a better developer. Not only does it help me catch bugs, but it has taught be how to write better code. We&#8217;ll look at unit testing, how you can start using it today without a formal testing framework, and also how to write your code to make it easier to unit test.<\/p>\n\n\n<div class=\"wp-block-wordcamp-session-speakers\"><span class=\"wp-block-wordcamp-session-speakers__byline\">Presented by<\/span><span class=\"wp-block-wordcamp-session-speakers__name\"><a href=\"https:\/\/montclair.wordcamp.org\/2024\/speaker\/sal-ferrarello\/\">Sal Ferrarello<\/a><\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>Units tests are extra lines of code that check to see whether or not the rest of the code we&#8217;ve written behaves the way we want it to. While it might seem paradoxical that writing more code can reduce development time, it&#8217;s true. Writing unit tests has made me a better developer. Not only does [&hellip;]<\/p>\n","protected":false},"author":12923633,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1717250400,"_wcpt_session_duration":3600,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[19402],"footnotes":""},"session_track":[24],"session_category":[],"class_list":["post-19407","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-classroom"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"June 1, 2024","time":"10:00 am"},"session_speakers":[{"id":"19402","slug":"sal-ferrarello","name":"Sal Ferrarello","link":"https:\/\/montclair.wordcamp.org\/2024\/speaker\/sal-ferrarello\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/19407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":2,"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/19407\/revisions"}],"predecessor-version":[{"id":20760,"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/sessions\/19407\/revisions\/20760"}],"speakers":[{"embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/speakers\/19402"}],"author":[{"embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wporg\/v1\/users\/salcode"}],"wp:attachment":[{"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/media?parent=19407"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/session_track?post=19407"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2024\/wp-json\/wp\/v2\/session_category?post=19407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}