[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":52,"blogToc-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":788,"blog-surrounding-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":1295,"blog-similar-posts-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":1304},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":764,"cover":766,"date":767,"description":768,"extension":769,"lastUpdated":770,"meta":771,"navigation":11,"ogImage":770,"path":773,"readingTime":774,"robots":770,"schemaOrg":770,"seo":779,"sitemap":780,"stem":786,"tags":770,"__hash__":787},"blog\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Findex.md","Run Automated Electron App Tests Using Travis CI",{"type":56,"value":57,"toc":751},"minimark",[58,81,84,99,108,113,120,123,136,139,143,146,161,169,178,182,188,194,199,208,214,217,220,229,235,418,422,428,441,543,547,550,691,695,704,707,714,718,731,737,741,744,747],[59,60,61,62,67,68,74,75,80],"p",{},"Last year I developed the ",[63,64,66],"a",{"href":65},"\u002Fstandup-picker","Standup Picker",", which is an ",[63,69,73],{"href":70,"rel":71},"https:\u002F\u002Fangular.io",[72],"nofollow","Angular"," application running in an ",[63,76,79],{"href":77,"rel":78},"https:\u002F\u002Felectronjs.org",[72],"Electron"," shell.",[59,82,83],{},"As I released new versions while older versions were already in use, I wanted to gain more confidence while releasing newer versions of my application.",[59,85,86,87,92,93,98],{},"As the ",[63,88,91],{"href":89,"rel":90},"https:\u002F\u002Fgithub.com\u002FMokkapps\u002Fscrum-daily-standup-picker",[72],"source code is available at GitHub",", I researched for free alternatives to ",[63,94,97],{"href":95,"rel":96},"https:\u002F\u002Fjenkins-ci.org\u002F",[72],"Jenkins"," which we used at work for Continuous Integration (CI).",[59,100,101,102,107],{},"I found ",[63,103,106],{"href":104,"rel":105},"https:\u002F\u002Ftravis-ci.org",[72],"Travis",", a free continuous integration platform for GitHub projects.",[109,110,112],"h2",{"id":111},"my-expectations","My Expectations",[59,114,115],{},[116,117],"img",{"alt":118,"src":119},"Deployment Meme","https:\u002F\u002Ftheagilecoder.files.wordpress.com\u002F2016\u002F12\u002Fdevops-memes-emcworld-2015-8-638.jpg",[59,121,122],{},"I wanted to integrate automated E2E and unit tests before each release of the Electron application. In my case, a release should be triggered if something has been merged to master. So the CI should perform these steps:",[124,125,126,130,133],"ol",{},[127,128,129],"li",{},"Run unit tests",[127,131,132],{},"Run E2E tests",[127,134,135],{},"Create Electron releases for OS X, Linux, Windows",[59,137,138],{},"This way, I can ensure that my releases work as expected (at least all the stuff I have covered by tests).",[109,140,142],{"id":141},"integrate-travis-ci-in-your-project","Integrate Travis CI in your project",[59,144,145],{},"To use Travis, you need to make sure that you have a GitHub account and owner permissions for this project hosted on GitHub.",[59,147,148,149,154,155,160],{},"The next step is to visit ",[63,150,153],{"href":151,"rel":152},"https:\u002F\u002Ftravis-ci.com\u002F",[72],"the Travis homepage",", ",[63,156,159],{"href":157,"rel":158},"https:\u002F\u002Ftravis-ci.com\u002Fsignin",[72],"sign up with GitHub"," and follow the instructions until you can select your project.",[59,162,163,164,168],{},"To tell Travis CI what automated steps should be executed, you need to add a ",[165,166,167],"code",{},".travis.yml"," file to the root directory of your repository.",[59,170,171,172,174,175,177],{},"Finally, you must add the ",[165,173,167],{}," file to git. If you then commit and push, a Travis CI build is triggered. Be aware that Travis can only run builds on commits that were pushed after the ",[165,176,167],{}," file has been pushed to git.",[109,179,181],{"id":180},"configure-travis-ci","Configure Travis CI",[59,183,184,185,187],{},"I will explain how I configured the ",[165,186,167],{}," file for my Electron application.",[59,189,190],{},[116,191],{"alt":192,"src":193},"Travis Image","blog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Ftravis-logo-static-v1.jpg",[195,196,198],"h3",{"id":197},"select-operating-system","Select Operating System",[59,200,201,202,207],{},"I start with a quote from ",[63,203,206],{"href":204,"rel":205},"https:\u002F\u002Fwww.electron.build\u002Fmulti-platform-build",[72],"the electron-builder website",", which is an NPM package I used to create my Electron releases:",[209,210,211],"blockquote",{},[59,212,213],{},"Don’t expect that you can build app for all platforms on one platform.",[59,215,216],{},"As I wanted to create releases for OS X, Windows, Linux I had to define multiple operating systems. The main reason was that it is impossible to create a Linux release from OS X or Windows.",[59,218,219],{},"So I ran my Travis setup on Linux and OS X in parallel. My scripts check the current operating system and run\nonly in the correct environment.",[59,221,222,223,228],{},"Check the ",[63,224,227],{"href":225,"rel":226},"https:\u002F\u002Fdocs.travis-ci.com\u002Fuser\u002Fmulti-os\u002F",[72],"official documentation"," for more details.",[59,230,231,232,234],{},"These are the relevant parts of my ",[165,233,167],{}," file:",[236,237,242],"pre",{"className":238,"code":239,"language":240,"meta":241,"style":241},"language-yaml shiki shiki-themes github-light poimandres poimandres","osx_image: xcode8.4 # define OS X image which will be mounted\n\ndist: trusty # use Ubuntu Trusty for Linux operation system\n\n# Note: if you switch to sudo: false, you'll need to launch chrome with --no-sandbox.\n# See https:\u002F\u002Fgithub.com\u002Ftravis-ci\u002Ftravis-ci\u002Fissues\u002F8836\nsudo: required\n\n# Define Node.js as the programming language as we have a web application\nlanguage: node_js\nnode_js: '8'\n\naddons:\n  chrome: stable # Install chrome stable on operating systems\n\n# A list of operating systems that are used for tests\nos:\n  - linux\n  - osx\n","yaml","",[165,243,244,265,271,285,290,296,302,313,318,324,335,354,359,368,382,387,393,401,410],{"__ignoreMap":241},[245,246,249,253,257,261],"span",{"class":247,"line":248},"line",1,[245,250,252],{"class":251},"s8PnL","osx_image",[245,254,256],{"class":255},"sygvE",": ",[245,258,260],{"class":259},"sMmyg","xcode8.4",[245,262,264],{"class":263},"s1MN7"," # define OS X image which will be mounted\n",[245,266,268],{"class":247,"line":267},2,[245,269,270],{"emptyLinePlaceholder":11},"\n",[245,272,274,277,279,282],{"class":247,"line":273},3,[245,275,276],{"class":251},"dist",[245,278,256],{"class":255},[245,280,281],{"class":259},"trusty",[245,283,284],{"class":263}," # use Ubuntu Trusty for Linux operation system\n",[245,286,288],{"class":247,"line":287},4,[245,289,270],{"emptyLinePlaceholder":11},[245,291,293],{"class":247,"line":292},5,[245,294,295],{"class":263},"# Note: if you switch to sudo: false, you'll need to launch chrome with --no-sandbox.\n",[245,297,299],{"class":247,"line":298},6,[245,300,301],{"class":263},"# See https:\u002F\u002Fgithub.com\u002Ftravis-ci\u002Ftravis-ci\u002Fissues\u002F8836\n",[245,303,305,308,310],{"class":247,"line":304},7,[245,306,307],{"class":251},"sudo",[245,309,256],{"class":255},[245,311,312],{"class":259},"required\n",[245,314,316],{"class":247,"line":315},8,[245,317,270],{"emptyLinePlaceholder":11},[245,319,321],{"class":247,"line":320},9,[245,322,323],{"class":263},"# Define Node.js as the programming language as we have a web application\n",[245,325,327,330,332],{"class":247,"line":326},10,[245,328,329],{"class":251},"language",[245,331,256],{"class":255},[245,333,334],{"class":259},"node_js\n",[245,336,338,341,343,347,351],{"class":247,"line":337},11,[245,339,340],{"class":251},"node_js",[245,342,256],{"class":255},[245,344,346],{"class":345},"srEIG","'",[245,348,350],{"class":349},"skTdI","8",[245,352,353],{"class":345},"'\n",[245,355,357],{"class":247,"line":356},12,[245,358,270],{"emptyLinePlaceholder":11},[245,360,362,365],{"class":247,"line":361},13,[245,363,364],{"class":251},"addons",[245,366,367],{"class":255},":\n",[245,369,371,374,376,379],{"class":247,"line":370},14,[245,372,373],{"class":251},"  chrome",[245,375,256],{"class":255},[245,377,378],{"class":259},"stable",[245,380,381],{"class":263}," # Install chrome stable on operating systems\n",[245,383,385],{"class":247,"line":384},15,[245,386,270],{"emptyLinePlaceholder":11},[245,388,390],{"class":247,"line":389},16,[245,391,392],{"class":263},"# A list of operating systems that are used for tests\n",[245,394,396,399],{"class":247,"line":395},17,[245,397,398],{"class":251},"os",[245,400,367],{"class":255},[245,402,404,407],{"class":247,"line":403},18,[245,405,406],{"class":255},"  - ",[245,408,409],{"class":259},"linux\n",[245,411,413,415],{"class":247,"line":412},19,[245,414,406],{"class":255},[245,416,417],{"class":259},"osx\n",[109,419,421],{"id":420},"electron-builder-configurations","Electron Builder Configurations",[59,423,424],{},[116,425],{"alt":426,"src":427},"Electron Logo","https:\u002F\u002Fcamo.githubusercontent.com\u002F627c774e3070482b180c3abd858ef2145d46303b\u002F68747470733a2f2f656c656374726f6e6a732e6f72672f696d616765732f656c656374726f6e2d6c6f676f2e737667",[59,429,430,431,436,437,440],{},"For the ",[63,432,435],{"href":433,"rel":434},"https:\u002F\u002Fwww.electron.build\u002F",[72],"electron-builder"," I added some additional cache and variable configuration based on the ",[63,438,227],{"href":204,"rel":439},[72],":",[236,442,444],{"className":238,"code":443,"language":240,"meta":241,"style":241},"env:\n  global:\n    - ELECTRON_CACHE=$HOME\u002F.cache\u002Felectron\n    - ELECTRON_BUILDER_CACHE=$HOME\u002F.cache\u002Felectron-builder\n\ncache:\n  yarn: true\n  directories:\n    - $HOME\u002F.cache\u002Felectron\n    - $HOME\u002F.cache\u002Felectron-builder\n    - $HOME\u002F.npm\u002F_prebuilds\n\nbefore_cache:\n  - if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then rm -rf $HOME\u002F.cache\u002Felectron-builder\u002Fwine; fi\n",[165,445,446,453,460,468,475,479,486,497,504,511,518,525,529,536],{"__ignoreMap":241},[245,447,448,451],{"class":247,"line":248},[245,449,450],{"class":251},"env",[245,452,367],{"class":255},[245,454,455,458],{"class":247,"line":267},[245,456,457],{"class":251},"  global",[245,459,367],{"class":255},[245,461,462,465],{"class":247,"line":273},[245,463,464],{"class":255},"    - ",[245,466,467],{"class":259},"ELECTRON_CACHE=$HOME\u002F.cache\u002Felectron\n",[245,469,470,472],{"class":247,"line":287},[245,471,464],{"class":255},[245,473,474],{"class":259},"ELECTRON_BUILDER_CACHE=$HOME\u002F.cache\u002Felectron-builder\n",[245,476,477],{"class":247,"line":292},[245,478,270],{"emptyLinePlaceholder":11},[245,480,481,484],{"class":247,"line":298},[245,482,483],{"class":251},"cache",[245,485,367],{"class":255},[245,487,488,491,493],{"class":247,"line":304},[245,489,490],{"class":251},"  yarn",[245,492,256],{"class":255},[245,494,496],{"class":495},"s6g4C","true\n",[245,498,499,502],{"class":247,"line":315},[245,500,501],{"class":251},"  directories",[245,503,367],{"class":255},[245,505,506,508],{"class":247,"line":320},[245,507,464],{"class":255},[245,509,510],{"class":259},"$HOME\u002F.cache\u002Felectron\n",[245,512,513,515],{"class":247,"line":326},[245,514,464],{"class":255},[245,516,517],{"class":259},"$HOME\u002F.cache\u002Felectron-builder\n",[245,519,520,522],{"class":247,"line":337},[245,521,464],{"class":255},[245,523,524],{"class":259},"$HOME\u002F.npm\u002F_prebuilds\n",[245,526,527],{"class":247,"line":356},[245,528,270],{"emptyLinePlaceholder":11},[245,530,531,534],{"class":247,"line":361},[245,532,533],{"class":251},"before_cache",[245,535,367],{"class":255},[245,537,538,540],{"class":247,"line":370},[245,539,406],{"class":255},[245,541,542],{"class":259},"if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then rm -rf $HOME\u002F.cache\u002Felectron-builder\u002Fwine; fi\n",[109,544,546],{"id":545},"define-scripts","Define Scripts",[59,548,549],{},"Now we define the scripts which Travis should execute:",[236,551,553],{"className":238,"code":552,"language":240,"meta":241,"style":241},"# These commands are executed before the scripts are executed\ninstall:\n  # On OS X we first need to install Yarn via Homebrew\n  - if [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then brew install yarn; fi\n  # Install all dependencies listed in your package.json file\n  - yarn\n\nscript:\n  - echo \"Unit Tests\"\n  - if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then xvfb-run yarn test; else yarn test; fi\n\n  - echo \"E2E Tests\"\n  - if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then xvfb-run yarn test:electron; else yarn test:electron; fi\n\n  - echo \"Deploy linux version to GitHub\"\n  - if [[ \"$TRAVIS_BRANCH\" == \"master\" ]] && [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then yarn release:linux; fi\n\n  - echo \"Deploy windows version to GitHub\"\n  - if [[ \"$TRAVIS_BRANCH\" == \"master\" ]] && [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then yarn release:win; fi\n\n  - echo \"Deploy mac version to GitHub\"\n  - if [[ \"$TRAVIS_BRANCH\" == \"master\" ]] && [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then yarn release:mac; fi\n",[165,554,555,560,567,572,579,584,591,595,602,609,616,620,627,634,638,645,652,656,663,670,675,683],{"__ignoreMap":241},[245,556,557],{"class":247,"line":248},[245,558,559],{"class":263},"# These commands are executed before the scripts are executed\n",[245,561,562,565],{"class":247,"line":267},[245,563,564],{"class":251},"install",[245,566,367],{"class":255},[245,568,569],{"class":247,"line":273},[245,570,571],{"class":263},"  # On OS X we first need to install Yarn via Homebrew\n",[245,573,574,576],{"class":247,"line":287},[245,575,406],{"class":255},[245,577,578],{"class":259},"if [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then brew install yarn; fi\n",[245,580,581],{"class":247,"line":292},[245,582,583],{"class":263},"  # Install all dependencies listed in your package.json file\n",[245,585,586,588],{"class":247,"line":298},[245,587,406],{"class":255},[245,589,590],{"class":259},"yarn\n",[245,592,593],{"class":247,"line":304},[245,594,270],{"emptyLinePlaceholder":11},[245,596,597,600],{"class":247,"line":315},[245,598,599],{"class":251},"script",[245,601,367],{"class":255},[245,603,604,606],{"class":247,"line":320},[245,605,406],{"class":255},[245,607,608],{"class":259},"echo \"Unit Tests\"\n",[245,610,611,613],{"class":247,"line":326},[245,612,406],{"class":255},[245,614,615],{"class":259},"if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then xvfb-run yarn test; else yarn test; fi\n",[245,617,618],{"class":247,"line":337},[245,619,270],{"emptyLinePlaceholder":11},[245,621,622,624],{"class":247,"line":356},[245,623,406],{"class":255},[245,625,626],{"class":259},"echo \"E2E Tests\"\n",[245,628,629,631],{"class":247,"line":361},[245,630,406],{"class":255},[245,632,633],{"class":259},"if [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then xvfb-run yarn test:electron; else yarn test:electron; fi\n",[245,635,636],{"class":247,"line":370},[245,637,270],{"emptyLinePlaceholder":11},[245,639,640,642],{"class":247,"line":384},[245,641,406],{"class":255},[245,643,644],{"class":259},"echo \"Deploy linux version to GitHub\"\n",[245,646,647,649],{"class":247,"line":389},[245,648,406],{"class":255},[245,650,651],{"class":259},"if [[ \"$TRAVIS_BRANCH\" == \"master\" ]] && [[ \"$TRAVIS_OS_NAME\" == \"linux\" ]]; then yarn release:linux; fi\n",[245,653,654],{"class":247,"line":395},[245,655,270],{"emptyLinePlaceholder":11},[245,657,658,660],{"class":247,"line":403},[245,659,406],{"class":255},[245,661,662],{"class":259},"echo \"Deploy windows version to GitHub\"\n",[245,664,665,667],{"class":247,"line":412},[245,666,406],{"class":255},[245,668,669],{"class":259},"if [[ \"$TRAVIS_BRANCH\" == \"master\" ]] && [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then yarn release:win; fi\n",[245,671,673],{"class":247,"line":672},20,[245,674,270],{"emptyLinePlaceholder":11},[245,676,678,680],{"class":247,"line":677},21,[245,679,406],{"class":255},[245,681,682],{"class":259},"echo \"Deploy mac version to GitHub\"\n",[245,684,686,688],{"class":247,"line":685},22,[245,687,406],{"class":255},[245,689,690],{"class":259},"if [[ \"$TRAVIS_BRANCH\" == \"master\" ]] && [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then yarn release:mac; fi\n",[195,692,694],{"id":693},"unit-e2e-tests","Unit & E2E tests",[59,696,697,698,703],{},"Electron needs a display driver as it is based on Chromium. You cannot execute any of your tests (and Electron will fail to launch) if Chromium cannot find a display driver. To fix this issue, we need to use a virtual display driver like ",[63,699,702],{"href":700,"rel":701},"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FXvfb",[72],"Xvfb",".",[59,705,706],{},"Xvfb is a virtual framebuffer that enables our tests to run in memory without showing an actual screen.",[59,708,709,710,713],{},"On Linux, we need to run the NPM test script via ",[165,711,712],{},"xvfb-run yarn \u003CNPM_SCRIPT_NAME>"," on OS X and Windows Chromium is already correctly configured.",[195,715,717],{"id":716},"github-release","GitHub Release",[59,719,720,721,724,725,730],{},"By running ",[165,722,723],{},"yarn release:\u003COS>"," from my ",[63,726,729],{"href":727,"rel":728},"https:\u002F\u002Fgithub.com\u002FMokkapps\u002Fscrum-daily-standup-picker\u002Fblob\u002Fmaster\u002Fpackage.json",[72],"package.json"," via electron-builder, I could automatically create a new release draft on the GitHub release page if the unit & E2E tests have passed:",[59,732,733],{},[116,734],{"alt":735,"src":736},"GitHub Release Page","blog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Fgithub-release-page_kjnisz.jpg",[109,738,740],{"id":739},"conclusion","Conclusion",[59,742,743],{},"I had to invest multiple hours in configuring Travis for my application. In the end, the time and effort were worth it.",[59,745,746],{},"New releases have passed my tests, and I can be sure that the application's basic functionality is working.",[748,749,750],"style",{},"html pre.shiki code .s8PnL, html code.shiki .s8PnL{--shiki-light:#22863A;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .sMmyg, html code.shiki .sMmyg{--shiki-light:#032F62;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .s1MN7, html code.shiki .s1MN7{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#767C9DB0;--shiki-default-font-style:italic;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}",{"title":241,"searchDepth":267,"depth":267,"links":752},[753,754,755,758,759,763],{"id":111,"depth":267,"text":112},{"id":141,"depth":267,"text":142},{"id":180,"depth":267,"text":181,"children":756},[757],{"id":197,"depth":273,"text":198},{"id":420,"depth":267,"text":421},{"id":545,"depth":267,"text":546,"children":760},[761,762],{"id":693,"depth":273,"text":694},{"id":716,"depth":273,"text":717},{"id":739,"depth":267,"text":740},[765],"development","blog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Ftravis-screenshot_bjmmzn.jpg","2018-09-06","Last year I developed the Standup Picker, which is an Angular application running in an Electron shell.","md",null,{"subTitle":772},"Let Travis CI run your unit & E2E tests for you","\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci",{"text":775,"minutes":776,"time":777,"words":778},"5 min read",4.09,245400,818,{"title":54,"description":768},{"loc":773,"images":781,"lastmod":767},[782,783,784,785],{"loc":119},{"loc":193},{"loc":427},{"loc":736},"blog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Findex","esYOpyngPcsmsmJWrfX7fim5wcUFX6damJRYfhUa9J4",{"id":789,"title":54,"body":790,"cover":766,"description":768,"extension":769,"meta":1284,"navigation":11,"path":773,"robots":770,"seo":1287,"sitemap":1288,"stem":786,"__hash__":1294},"content\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Findex.md",{"type":56,"value":791,"toc":1271},[792,802,804,812,817,819,823,825,833,835,837,839,847,851,857,859,863,867,869,874,878,880,882,887,891,1013,1015,1019,1027,1113,1115,1117,1237,1239,1244,1246,1250,1252,1259,1263,1265,1267,1269],[59,793,61,794,67,796,74,799,80],{},[63,795,66],{"href":65},[63,797,73],{"href":70,"rel":798},[72],[63,800,79],{"href":77,"rel":801},[72],[59,803,83],{},[59,805,86,806,92,809,98],{},[63,807,91],{"href":89,"rel":808},[72],[63,810,97],{"href":95,"rel":811},[72],[59,813,101,814,107],{},[63,815,106],{"href":104,"rel":816},[72],[109,818,112],{"id":111},[59,820,821],{},[116,822],{"alt":118,"src":119},[59,824,122],{},[124,826,827,829,831],{},[127,828,129],{},[127,830,132],{},[127,832,135],{},[59,834,138],{},[109,836,142],{"id":141},[59,838,145],{},[59,840,148,841,154,844,160],{},[63,842,153],{"href":151,"rel":843},[72],[63,845,159],{"href":157,"rel":846},[72],[59,848,163,849,168],{},[165,850,167],{},[59,852,171,853,174,855,177],{},[165,854,167],{},[165,856,167],{},[109,858,181],{"id":180},[59,860,184,861,187],{},[165,862,167],{},[59,864,865],{},[116,866],{"alt":192,"src":193},[195,868,198],{"id":197},[59,870,201,871,207],{},[63,872,206],{"href":204,"rel":873},[72],[209,875,876],{},[59,877,213],{},[59,879,216],{},[59,881,219],{},[59,883,222,884,228],{},[63,885,227],{"href":225,"rel":886},[72],[59,888,231,889,234],{},[165,890,167],{},[236,892,893],{"className":238,"code":239,"language":240,"meta":241,"style":241},[165,894,895,905,909,919,923,927,931,939,943,947,955,967,971,977,987,991,995,1001,1007],{"__ignoreMap":241},[245,896,897,899,901,903],{"class":247,"line":248},[245,898,252],{"class":251},[245,900,256],{"class":255},[245,902,260],{"class":259},[245,904,264],{"class":263},[245,906,907],{"class":247,"line":267},[245,908,270],{"emptyLinePlaceholder":11},[245,910,911,913,915,917],{"class":247,"line":273},[245,912,276],{"class":251},[245,914,256],{"class":255},[245,916,281],{"class":259},[245,918,284],{"class":263},[245,920,921],{"class":247,"line":287},[245,922,270],{"emptyLinePlaceholder":11},[245,924,925],{"class":247,"line":292},[245,926,295],{"class":263},[245,928,929],{"class":247,"line":298},[245,930,301],{"class":263},[245,932,933,935,937],{"class":247,"line":304},[245,934,307],{"class":251},[245,936,256],{"class":255},[245,938,312],{"class":259},[245,940,941],{"class":247,"line":315},[245,942,270],{"emptyLinePlaceholder":11},[245,944,945],{"class":247,"line":320},[245,946,323],{"class":263},[245,948,949,951,953],{"class":247,"line":326},[245,950,329],{"class":251},[245,952,256],{"class":255},[245,954,334],{"class":259},[245,956,957,959,961,963,965],{"class":247,"line":337},[245,958,340],{"class":251},[245,960,256],{"class":255},[245,962,346],{"class":345},[245,964,350],{"class":349},[245,966,353],{"class":345},[245,968,969],{"class":247,"line":356},[245,970,270],{"emptyLinePlaceholder":11},[245,972,973,975],{"class":247,"line":361},[245,974,364],{"class":251},[245,976,367],{"class":255},[245,978,979,981,983,985],{"class":247,"line":370},[245,980,373],{"class":251},[245,982,256],{"class":255},[245,984,378],{"class":259},[245,986,381],{"class":263},[245,988,989],{"class":247,"line":384},[245,990,270],{"emptyLinePlaceholder":11},[245,992,993],{"class":247,"line":389},[245,994,392],{"class":263},[245,996,997,999],{"class":247,"line":395},[245,998,398],{"class":251},[245,1000,367],{"class":255},[245,1002,1003,1005],{"class":247,"line":403},[245,1004,406],{"class":255},[245,1006,409],{"class":259},[245,1008,1009,1011],{"class":247,"line":412},[245,1010,406],{"class":255},[245,1012,417],{"class":259},[109,1014,421],{"id":420},[59,1016,1017],{},[116,1018],{"alt":426,"src":427},[59,1020,430,1021,436,1024,440],{},[63,1022,435],{"href":433,"rel":1023},[72],[63,1025,227],{"href":204,"rel":1026},[72],[236,1028,1029],{"className":238,"code":443,"language":240,"meta":241,"style":241},[165,1030,1031,1037,1043,1049,1055,1059,1065,1073,1079,1085,1091,1097,1101,1107],{"__ignoreMap":241},[245,1032,1033,1035],{"class":247,"line":248},[245,1034,450],{"class":251},[245,1036,367],{"class":255},[245,1038,1039,1041],{"class":247,"line":267},[245,1040,457],{"class":251},[245,1042,367],{"class":255},[245,1044,1045,1047],{"class":247,"line":273},[245,1046,464],{"class":255},[245,1048,467],{"class":259},[245,1050,1051,1053],{"class":247,"line":287},[245,1052,464],{"class":255},[245,1054,474],{"class":259},[245,1056,1057],{"class":247,"line":292},[245,1058,270],{"emptyLinePlaceholder":11},[245,1060,1061,1063],{"class":247,"line":298},[245,1062,483],{"class":251},[245,1064,367],{"class":255},[245,1066,1067,1069,1071],{"class":247,"line":304},[245,1068,490],{"class":251},[245,1070,256],{"class":255},[245,1072,496],{"class":495},[245,1074,1075,1077],{"class":247,"line":315},[245,1076,501],{"class":251},[245,1078,367],{"class":255},[245,1080,1081,1083],{"class":247,"line":320},[245,1082,464],{"class":255},[245,1084,510],{"class":259},[245,1086,1087,1089],{"class":247,"line":326},[245,1088,464],{"class":255},[245,1090,517],{"class":259},[245,1092,1093,1095],{"class":247,"line":337},[245,1094,464],{"class":255},[245,1096,524],{"class":259},[245,1098,1099],{"class":247,"line":356},[245,1100,270],{"emptyLinePlaceholder":11},[245,1102,1103,1105],{"class":247,"line":361},[245,1104,533],{"class":251},[245,1106,367],{"class":255},[245,1108,1109,1111],{"class":247,"line":370},[245,1110,406],{"class":255},[245,1112,542],{"class":259},[109,1114,546],{"id":545},[59,1116,549],{},[236,1118,1119],{"className":238,"code":552,"language":240,"meta":241,"style":241},[165,1120,1121,1125,1131,1135,1141,1145,1151,1155,1161,1167,1173,1177,1183,1189,1193,1199,1205,1209,1215,1221,1225,1231],{"__ignoreMap":241},[245,1122,1123],{"class":247,"line":248},[245,1124,559],{"class":263},[245,1126,1127,1129],{"class":247,"line":267},[245,1128,564],{"class":251},[245,1130,367],{"class":255},[245,1132,1133],{"class":247,"line":273},[245,1134,571],{"class":263},[245,1136,1137,1139],{"class":247,"line":287},[245,1138,406],{"class":255},[245,1140,578],{"class":259},[245,1142,1143],{"class":247,"line":292},[245,1144,583],{"class":263},[245,1146,1147,1149],{"class":247,"line":298},[245,1148,406],{"class":255},[245,1150,590],{"class":259},[245,1152,1153],{"class":247,"line":304},[245,1154,270],{"emptyLinePlaceholder":11},[245,1156,1157,1159],{"class":247,"line":315},[245,1158,599],{"class":251},[245,1160,367],{"class":255},[245,1162,1163,1165],{"class":247,"line":320},[245,1164,406],{"class":255},[245,1166,608],{"class":259},[245,1168,1169,1171],{"class":247,"line":326},[245,1170,406],{"class":255},[245,1172,615],{"class":259},[245,1174,1175],{"class":247,"line":337},[245,1176,270],{"emptyLinePlaceholder":11},[245,1178,1179,1181],{"class":247,"line":356},[245,1180,406],{"class":255},[245,1182,626],{"class":259},[245,1184,1185,1187],{"class":247,"line":361},[245,1186,406],{"class":255},[245,1188,633],{"class":259},[245,1190,1191],{"class":247,"line":370},[245,1192,270],{"emptyLinePlaceholder":11},[245,1194,1195,1197],{"class":247,"line":384},[245,1196,406],{"class":255},[245,1198,644],{"class":259},[245,1200,1201,1203],{"class":247,"line":389},[245,1202,406],{"class":255},[245,1204,651],{"class":259},[245,1206,1207],{"class":247,"line":395},[245,1208,270],{"emptyLinePlaceholder":11},[245,1210,1211,1213],{"class":247,"line":403},[245,1212,406],{"class":255},[245,1214,662],{"class":259},[245,1216,1217,1219],{"class":247,"line":412},[245,1218,406],{"class":255},[245,1220,669],{"class":259},[245,1222,1223],{"class":247,"line":672},[245,1224,270],{"emptyLinePlaceholder":11},[245,1226,1227,1229],{"class":247,"line":677},[245,1228,406],{"class":255},[245,1230,682],{"class":259},[245,1232,1233,1235],{"class":247,"line":685},[245,1234,406],{"class":255},[245,1236,690],{"class":259},[195,1238,694],{"id":693},[59,1240,697,1241,703],{},[63,1242,702],{"href":700,"rel":1243},[72],[59,1245,706],{},[59,1247,709,1248,713],{},[165,1249,712],{},[195,1251,717],{"id":716},[59,1253,720,1254,724,1256,730],{},[165,1255,723],{},[63,1257,729],{"href":727,"rel":1258},[72],[59,1260,1261],{},[116,1262],{"alt":735,"src":736},[109,1264,740],{"id":739},[59,1266,743],{},[59,1268,746],{},[748,1270,750],{},{"title":241,"searchDepth":267,"depth":267,"links":1272},[1273,1274,1275,1278,1279,1283],{"id":111,"depth":267,"text":112},{"id":141,"depth":267,"text":142},{"id":180,"depth":267,"text":181,"children":1276},[1277],{"id":197,"depth":273,"text":198},{"id":420,"depth":267,"text":421},{"id":545,"depth":267,"text":546,"children":1280},[1281,1282],{"id":693,"depth":273,"text":694},{"id":716,"depth":273,"text":717},{"id":739,"depth":267,"text":740},{"subTitle":772,"categories":1285,"date":767,"readingTime":1286},[765],{"text":775,"minutes":776,"time":777,"words":778},{"title":54,"description":768},{"loc":773,"images":1289,"lastmod":767},[1290,1291,1292,1293],{"loc":119},{"loc":193},{"loc":427},{"loc":736},"KACKZMkzNv2N1pGBJ7srKLOMPg96VnRqmr9V79FCG08",[1296,1300],{"title":1297,"path":1298,"stem":1299,"children":-1},"Sticky Footer in GatsbyJS using Flexbox","\u002Fblog\u002Fsticky-footer-in-gatsbyjs-using-flexbox","blog\u002Fsticky-footer-in-gatsbyjs-using-flexbox\u002Findex",{"title":1301,"path":1302,"stem":1303,"children":-1},"With These Tips You Will Rock Every Technical Job Interview","\u002Fblog\u002Fwith-these-tips-you-will-rock-every-technical-job-interview","blog\u002Fwith-these-tips-you-will-rock-every-technical-job-interview\u002Findex",[1305,1310,1315,1320],{"cover":1306,"date":1307,"slug":1308,"title":1309,"to":1308},"blog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3\u002Fog.png","2023-06-20","\u002Fblog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3","A Comprehensive Guide to Data Fetching in Nuxt 3",{"cover":1311,"date":1312,"slug":1313,"title":1314,"to":1313},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","Analyze Memory Leaks in Your Nuxt App",{"cover":1316,"date":1317,"slug":1318,"title":1319,"to":1318},"blog\u002Fbuild-and-deploy-a-serverless-graphql-react-app-using-aws-amplify\u002Fcover_pliu6q.jpg","2021-05-07","\u002Fblog\u002Fbuild-and-deploy-a-serverless-graphql-react-app-using-aws-amplify","Build and Deploy a Serverless GraphQL React App Using AWS Amplify",{"cover":1321,"date":1322,"slug":1323,"title":1324,"to":1323},"blog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3\u002FBlog_Post__Polite_Popup_Nuxt_3_k8ch1w.jpg","2022-10-18","\u002Fblog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3","Building a Polite Newsletter Popup With Nuxt 3"]