File tree Expand file tree Collapse file tree 3 files changed +17
-43
lines changed
Expand file tree Collapse file tree 3 files changed +17
-43
lines changed Original file line number Diff line number Diff line change 11os :
22 - osx
33language : node_js
4- node_js :
5- - ' 6.3.1'
6- cache :
7- directories :
8- - node_modules
4+ node_js : stable
5+ after_success :
6+ - npm run coverage
97notifications :
108 email :
119 on_success : never
Original file line number Diff line number Diff line change 99 "repository" : " uetchy/juno" ,
1010 "electronVersion" : " 1.2.8" ,
1111 "scripts" : {
12- "test" : " mocha && xo" ,
12+ "test" : " nyc ava && xo" ,
13+ "coverage" : " nyc report --reporter=text-lcov" ,
1314 "start" : " electron ." ,
1415 "build" : " electron-packager . $npm_package_productName --out=dist --ignore='^/dist$' --prune --asar --platform=darwin --arch=x64 --version=$npm_package_electronVersion --app-version=$npm_package_version --icon=./assets/app.icns --overwrite" ,
1516 "postbuild" : " node scripts/post-build-mac.js" ,
1617 "release" : " npm-run-all test build"
1718 },
19+ "xo" : {
20+ "envs" : [
21+ " browser"
22+ ]
23+ },
1824 "dependencies" : {
1925 "extend" : " ^3.0.0" ,
20- "yargs" : " ^4.8.1 "
26+ "yargs" : " ^5.0.0 "
2127 },
2228 "devDependencies" : {
23- "electron-packager " : " ^7.3 .0" ,
24- "mocha " : " ^3.0.1 " ,
29+ "ava " : " ^0.16 .0" ,
30+ "coveralls " : " ^2.11.12 " ,
2531 "electron" : " ^1.3.3" ,
32+ "electron-packager" : " ^7.6.0" ,
2633 "npm-run-all" : " ^2.3.0" ,
27- "plist" : " ^1.2.0" ,
34+ "nyc" : " ^8.1.0" ,
35+ "plist" : " ^2.0.1" ,
2836 "spectron" : " ^3.3.0" ,
2937 "xo" : " ^0.16.0"
30- },
31- "xo" : {
32- "esnext" : true ,
33- "envs" : [
34- " node" ,
35- " browser"
36- ]
3738 }
3839}
Original file line number Diff line number Diff line change 1- const assert = require ( 'assert' )
2- const Application = require ( 'spectron' ) . Application
3-
4- describe ( 'application launch' , function ( ) {
5- this . timeout ( 10000 )
6-
7- beforeEach ( function ( ) {
8- this . app = new Application ( {
9- path : './node_modules/electron/dist/Electron.app/Contents/MacOS/Electron' ,
10- args : [ '.' ]
11- } )
12- return this . app . start ( )
13- } )
14-
15- afterEach ( function ( ) {
16- if ( this . app && this . app . isRunning ( ) ) {
17- return this . app . stop ( )
18- }
19- } )
20-
21- it ( 'shows an initial window' , function ( ) {
22- return this . app . client . getWindowCount ( ) . then ( count => {
23- assert . equal ( count , 1 )
24- } )
25- } )
26- } )
1+ import test from 'ava' ;
You can’t perform that action at this time.
0 commit comments