Skip to content

Commit ca49f1a

Browse files
committed
distinguish human tests from bot tests
1 parent a108857 commit ca49f1a

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build:resize": "node script/resize.js",
99
"build:dates": "node script/dates",
1010
"build:pack": "node script/pack.js",
11-
"test": "mocha",
11+
"test": "mocha test/human-data.js",
12+
"test-all": "mocha",
1213
"wizard": "node wizard.js",
1314
"release": "scripts/release.sh"
1415
},

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git clone https://github.com/electron/electron-apps app
99
cd app
1010
npm install
1111
npm run build
12-
npm test
12+
npm run test-all
1313
[[ `git status --porcelain` ]] || exit
1414
git add .
1515
git config user.email "kevinsawicki+electron-bot@github.com"

test/data.js renamed to test/human-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const slugs = fs.readdirSync(path.join(__dirname, '../apps'))
1212
return fs.statSync(path.join(__dirname, `../apps/${filename}`)).isDirectory()
1313
})
1414

15-
describe('app data', () => {
15+
describe('human-submitted app data', () => {
1616
it('includes lots of apps', () => {
1717
expect(slugs.length).to.be.above(200)
1818
})

test/build.js renamed to test/machine-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path')
33
const apps = require('..')
44
const expect = require('chai').expect
55

6-
describe('index.json build artifact', () => {
6+
describe('machine-generated app data', () => {
77

88
it('is an array', () => {
99
expect(apps).to.be.an('array')

0 commit comments

Comments
 (0)