[{"data":1,"prerenderedAt":-1,"buildId":1325},["ShallowReactive",2],{"$9oPIbGgjrk":3,"blog-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":52,"blog-similar-posts-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":788,"blog-surrounding-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":809,"blogToc-\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci":818},{"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",[789,794,799,804],{"cover":790,"date":791,"slug":792,"title":793,"to":792},"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":795,"date":796,"slug":797,"title":798,"to":797},"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":800,"date":801,"slug":802,"title":803,"to":802},"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":805,"date":806,"slug":807,"title":808,"to":807},"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",[810,814],{"title":811,"path":812,"stem":813,"children":-1},"Sticky Footer in GatsbyJS using Flexbox","\u002Fblog\u002Fsticky-footer-in-gatsbyjs-using-flexbox","blog\u002Fsticky-footer-in-gatsbyjs-using-flexbox\u002Findex",{"title":815,"path":816,"stem":817,"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",{"id":819,"title":54,"body":820,"cover":766,"date":767,"description":768,"extension":769,"meta":1314,"navigation":11,"path":773,"robots":770,"seo":1317,"sitemap":1318,"stem":786,"__hash__":1324},"content\u002Fblog\u002Frun-automated-electron-app-tests-using-travis-ci\u002Findex.md",{"type":56,"value":821,"toc":1301},[822,832,834,842,847,849,853,855,863,865,867,869,877,881,887,889,893,897,899,904,908,910,912,917,921,1043,1045,1049,1057,1143,1145,1147,1267,1269,1274,1276,1280,1282,1289,1293,1295,1297,1299],[59,823,61,824,67,826,74,829,80],{},[63,825,66],{"href":65},[63,827,73],{"href":70,"rel":828},[72],[63,830,79],{"href":77,"rel":831},[72],[59,833,83],{},[59,835,86,836,92,839,98],{},[63,837,91],{"href":89,"rel":838},[72],[63,840,97],{"href":95,"rel":841},[72],[59,843,101,844,107],{},[63,845,106],{"href":104,"rel":846},[72],[109,848,112],{"id":111},[59,850,851],{},[116,852],{"alt":118,"src":119},[59,854,122],{},[124,856,857,859,861],{},[127,858,129],{},[127,860,132],{},[127,862,135],{},[59,864,138],{},[109,866,142],{"id":141},[59,868,145],{},[59,870,148,871,154,874,160],{},[63,872,153],{"href":151,"rel":873},[72],[63,875,159],{"href":157,"rel":876},[72],[59,878,163,879,168],{},[165,880,167],{},[59,882,171,883,174,885,177],{},[165,884,167],{},[165,886,167],{},[109,888,181],{"id":180},[59,890,184,891,187],{},[165,892,167],{},[59,894,895],{},[116,896],{"alt":192,"src":193},[195,898,198],{"id":197},[59,900,201,901,207],{},[63,902,206],{"href":204,"rel":903},[72],[209,905,906],{},[59,907,213],{},[59,909,216],{},[59,911,219],{},[59,913,222,914,228],{},[63,915,227],{"href":225,"rel":916},[72],[59,918,231,919,234],{},[165,920,167],{},[236,922,923],{"className":238,"code":239,"language":240,"meta":241,"style":241},[165,924,925,935,939,949,953,957,961,969,973,977,985,997,1001,1007,1017,1021,1025,1031,1037],{"__ignoreMap":241},[245,926,927,929,931,933],{"class":247,"line":248},[245,928,252],{"class":251},[245,930,256],{"class":255},[245,932,260],{"class":259},[245,934,264],{"class":263},[245,936,937],{"class":247,"line":267},[245,938,270],{"emptyLinePlaceholder":11},[245,940,941,943,945,947],{"class":247,"line":273},[245,942,276],{"class":251},[245,944,256],{"class":255},[245,946,281],{"class":259},[245,948,284],{"class":263},[245,950,951],{"class":247,"line":287},[245,952,270],{"emptyLinePlaceholder":11},[245,954,955],{"class":247,"line":292},[245,956,295],{"class":263},[245,958,959],{"class":247,"line":298},[245,960,301],{"class":263},[245,962,963,965,967],{"class":247,"line":304},[245,964,307],{"class":251},[245,966,256],{"class":255},[245,968,312],{"class":259},[245,970,971],{"class":247,"line":315},[245,972,270],{"emptyLinePlaceholder":11},[245,974,975],{"class":247,"line":320},[245,976,323],{"class":263},[245,978,979,981,983],{"class":247,"line":326},[245,980,329],{"class":251},[245,982,256],{"class":255},[245,984,334],{"class":259},[245,986,987,989,991,993,995],{"class":247,"line":337},[245,988,340],{"class":251},[245,990,256],{"class":255},[245,992,346],{"class":345},[245,994,350],{"class":349},[245,996,353],{"class":345},[245,998,999],{"class":247,"line":356},[245,1000,270],{"emptyLinePlaceholder":11},[245,1002,1003,1005],{"class":247,"line":361},[245,1004,364],{"class":251},[245,1006,367],{"class":255},[245,1008,1009,1011,1013,1015],{"class":247,"line":370},[245,1010,373],{"class":251},[245,1012,256],{"class":255},[245,1014,378],{"class":259},[245,1016,381],{"class":263},[245,1018,1019],{"class":247,"line":384},[245,1020,270],{"emptyLinePlaceholder":11},[245,1022,1023],{"class":247,"line":389},[245,1024,392],{"class":263},[245,1026,1027,1029],{"class":247,"line":395},[245,1028,398],{"class":251},[245,1030,367],{"class":255},[245,1032,1033,1035],{"class":247,"line":403},[245,1034,406],{"class":255},[245,1036,409],{"class":259},[245,1038,1039,1041],{"class":247,"line":412},[245,1040,406],{"class":255},[245,1042,417],{"class":259},[109,1044,421],{"id":420},[59,1046,1047],{},[116,1048],{"alt":426,"src":427},[59,1050,430,1051,436,1054,440],{},[63,1052,435],{"href":433,"rel":1053},[72],[63,1055,227],{"href":204,"rel":1056},[72],[236,1058,1059],{"className":238,"code":443,"language":240,"meta":241,"style":241},[165,1060,1061,1067,1073,1079,1085,1089,1095,1103,1109,1115,1121,1127,1131,1137],{"__ignoreMap":241},[245,1062,1063,1065],{"class":247,"line":248},[245,1064,450],{"class":251},[245,1066,367],{"class":255},[245,1068,1069,1071],{"class":247,"line":267},[245,1070,457],{"class":251},[245,1072,367],{"class":255},[245,1074,1075,1077],{"class":247,"line":273},[245,1076,464],{"class":255},[245,1078,467],{"class":259},[245,1080,1081,1083],{"class":247,"line":287},[245,1082,464],{"class":255},[245,1084,474],{"class":259},[245,1086,1087],{"class":247,"line":292},[245,1088,270],{"emptyLinePlaceholder":11},[245,1090,1091,1093],{"class":247,"line":298},[245,1092,483],{"class":251},[245,1094,367],{"class":255},[245,1096,1097,1099,1101],{"class":247,"line":304},[245,1098,490],{"class":251},[245,1100,256],{"class":255},[245,1102,496],{"class":495},[245,1104,1105,1107],{"class":247,"line":315},[245,1106,501],{"class":251},[245,1108,367],{"class":255},[245,1110,1111,1113],{"class":247,"line":320},[245,1112,464],{"class":255},[245,1114,510],{"class":259},[245,1116,1117,1119],{"class":247,"line":326},[245,1118,464],{"class":255},[245,1120,517],{"class":259},[245,1122,1123,1125],{"class":247,"line":337},[245,1124,464],{"class":255},[245,1126,524],{"class":259},[245,1128,1129],{"class":247,"line":356},[245,1130,270],{"emptyLinePlaceholder":11},[245,1132,1133,1135],{"class":247,"line":361},[245,1134,533],{"class":251},[245,1136,367],{"class":255},[245,1138,1139,1141],{"class":247,"line":370},[245,1140,406],{"class":255},[245,1142,542],{"class":259},[109,1144,546],{"id":545},[59,1146,549],{},[236,1148,1149],{"className":238,"code":552,"language":240,"meta":241,"style":241},[165,1150,1151,1155,1161,1165,1171,1175,1181,1185,1191,1197,1203,1207,1213,1219,1223,1229,1235,1239,1245,1251,1255,1261],{"__ignoreMap":241},[245,1152,1153],{"class":247,"line":248},[245,1154,559],{"class":263},[245,1156,1157,1159],{"class":247,"line":267},[245,1158,564],{"class":251},[245,1160,367],{"class":255},[245,1162,1163],{"class":247,"line":273},[245,1164,571],{"class":263},[245,1166,1167,1169],{"class":247,"line":287},[245,1168,406],{"class":255},[245,1170,578],{"class":259},[245,1172,1173],{"class":247,"line":292},[245,1174,583],{"class":263},[245,1176,1177,1179],{"class":247,"line":298},[245,1178,406],{"class":255},[245,1180,590],{"class":259},[245,1182,1183],{"class":247,"line":304},[245,1184,270],{"emptyLinePlaceholder":11},[245,1186,1187,1189],{"class":247,"line":315},[245,1188,599],{"class":251},[245,1190,367],{"class":255},[245,1192,1193,1195],{"class":247,"line":320},[245,1194,406],{"class":255},[245,1196,608],{"class":259},[245,1198,1199,1201],{"class":247,"line":326},[245,1200,406],{"class":255},[245,1202,615],{"class":259},[245,1204,1205],{"class":247,"line":337},[245,1206,270],{"emptyLinePlaceholder":11},[245,1208,1209,1211],{"class":247,"line":356},[245,1210,406],{"class":255},[245,1212,626],{"class":259},[245,1214,1215,1217],{"class":247,"line":361},[245,1216,406],{"class":255},[245,1218,633],{"class":259},[245,1220,1221],{"class":247,"line":370},[245,1222,270],{"emptyLinePlaceholder":11},[245,1224,1225,1227],{"class":247,"line":384},[245,1226,406],{"class":255},[245,1228,644],{"class":259},[245,1230,1231,1233],{"class":247,"line":389},[245,1232,406],{"class":255},[245,1234,651],{"class":259},[245,1236,1237],{"class":247,"line":395},[245,1238,270],{"emptyLinePlaceholder":11},[245,1240,1241,1243],{"class":247,"line":403},[245,1242,406],{"class":255},[245,1244,662],{"class":259},[245,1246,1247,1249],{"class":247,"line":412},[245,1248,406],{"class":255},[245,1250,669],{"class":259},[245,1252,1253],{"class":247,"line":672},[245,1254,270],{"emptyLinePlaceholder":11},[245,1256,1257,1259],{"class":247,"line":677},[245,1258,406],{"class":255},[245,1260,682],{"class":259},[245,1262,1263,1265],{"class":247,"line":685},[245,1264,406],{"class":255},[245,1266,690],{"class":259},[195,1268,694],{"id":693},[59,1270,697,1271,703],{},[63,1272,702],{"href":700,"rel":1273},[72],[59,1275,706],{},[59,1277,709,1278,713],{},[165,1279,712],{},[195,1281,717],{"id":716},[59,1283,720,1284,724,1286,730],{},[165,1285,723],{},[63,1287,729],{"href":727,"rel":1288},[72],[59,1290,1291],{},[116,1292],{"alt":735,"src":736},[109,1294,740],{"id":739},[59,1296,743],{},[59,1298,746],{},[748,1300,750],{},{"title":241,"searchDepth":267,"depth":267,"links":1302},[1303,1304,1305,1308,1309,1313],{"id":111,"depth":267,"text":112},{"id":141,"depth":267,"text":142},{"id":180,"depth":267,"text":181,"children":1306},[1307],{"id":197,"depth":273,"text":198},{"id":420,"depth":267,"text":421},{"id":545,"depth":267,"text":546,"children":1310},[1311,1312],{"id":693,"depth":273,"text":694},{"id":716,"depth":273,"text":717},{"id":739,"depth":267,"text":740},{"subTitle":772,"categories":1315,"readingTime":1316},[765],{"text":775,"minutes":776,"time":777,"words":778},{"title":54,"description":768},{"loc":773,"images":1319,"lastmod":767},[1320,1321,1322,1323],{"loc":119},{"loc":193},{"loc":427},{"loc":736},"tgdci5hJgGrdZxlpRb0xy41YUyV1vC0nPQH0ciCxkCg","f09a107e-6bfe-401d-aab9-d94cb6f394d2"]