Make cloudron names based on test name

This commit is contained in:
Girish Ramakrishnan 2015-06-14 21:29:02 -07:00
parent 2f19e8a71e
commit b1d334c2d4
3 changed files with 5 additions and 3 deletions

View File

@ -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",

View File

@ -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',

View File

@ -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',