From b1d334c2d4dd0e516c4d6f62e9886375fde945a9 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 14 Jun 2015 21:29:02 -0700 Subject: [PATCH] Make cloudron names based on test name --- package.json | 2 +- test/new-user-test.js | 3 ++- test/update-test.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 29a638a..d38d567 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "test.js", "scripts": { "test": "DEBUG=superagent-sync,e2e:* ./node_modules/.bin/mocha test/*", - "parallel_test": "./node_modules/.bin/parallel-mocha test/*" + "parallel_test": "./node_modules/.bin/parallel-mocha --processes 5 test/*" }, "repository": { "type": "git", diff --git a/test/new-user-test.js b/test/new-user-test.js index 451eac2..742ccfc 100644 --- a/test/new-user-test.js +++ b/test/new-user-test.js @@ -5,6 +5,7 @@ var AppStore = require('../appstore.js'), assert = require('assert'), Cloudron = require('../cloudron.js'), + path = require('path'), readlineSync = require('readline-sync'), request = require('superagent-sync'), semver = require('semver'), @@ -50,7 +51,7 @@ describe('End to end testing', function () { it('can create a cloudron', function () { box = appStore.createCloudron({ - name: 'testbox' + (Math.random() * 1000).toFixed() + '.smartserver.io', + name: 'testbox-' + path.basename(__filename, '-test.js') + '.smartserver.io', zoneName: 'smartserver.io', region: 'sfo1', size: '512mb', diff --git a/test/update-test.js b/test/update-test.js index 348f954..3ca339a 100644 --- a/test/update-test.js +++ b/test/update-test.js @@ -5,6 +5,7 @@ var AppStore = require('../appstore.js'), assert = require('assert'), Cloudron = require('../cloudron.js'), + path = require('path'), readlineSync = require('readline-sync'), request = require('superagent-sync'), semver = require('semver'), @@ -53,7 +54,7 @@ describe('End to end testing', function () { it('can create a cloudron', function () { box = appStore.createCloudron({ - name: 'testbox' + (Math.random() * 1000).toFixed() + '.smartserver.io', + name: 'testbox-' + path.basename(__filename, '-test.js') + '.smartserver.io', zoneName: 'smartserver.io', region: 'sfo1', size: '512mb',