Permalink
Browse files

Remove test-integration for now, need to come up with a better way ra…

…ther than using shelljs.
  • Loading branch information...
1 parent 21bfb42 commit 02bd967a6827d5070162f277079a20dff51ce9f4 @cliffano committed Sep 6, 2013
Showing with 2 additions and 58 deletions.
  1. +2 −3 package.json
  2. +0 −55 test-integration/bin.js
View
@@ -46,8 +46,7 @@
"xml2js": "~0.2.8"
},
"devDependencies": {
- "buster": "~0.6.12",
- "shelljs": "~0.1.4"
+ "buster": "~0.6.12"
},
"scripts": {},
"engines": {
@@ -59,4 +58,4 @@
"url": "http://github.com/cliffano/nestor/raw/master/LICENSE"
}
]
-}
+}
@@ -1,55 +0,0 @@
-var buster = require('buster');
-require('shelljs/global');
-
-buster.testCase('bin', {
- setUp: function () {
- // assume Jenkins is already up and running on http://localhost:8080
- },
- tearDown: function () {
- },
- 'build - should exit with code 1 when job does not exist': function () {
- var result = exec('nestor build somenonexistingbuild');
- assert.equals(result.code, 1);
- assert.equals(result.output, 'Job somenonexistingbuild does not exist\n');
- },
- 'console - should exit with code 1 when job does not exist': function () {
- var result = exec('nestor console somenonexistingbuild');
- assert.equals(result.code, 1);
- assert.equals(result.output, 'Job somenonexistingbuild does not exist\n');
- },
- 'stop - should exit with code 1 when job does not exist': function () {
- var result = exec('nestor stop somenonexistingbuild');
- assert.equals(result.code, 1);
- assert.equals(result.output, 'Job somenonexistingbuild does not exist\n');
- },
- 'dashboard - should exit with code 0 because dashboard list always exists': function () {
- var result = exec('nestor dashboard');
- assert.equals(result.code, 0);
- assert.isTrue(result.output.length > 0);
- },
- 'discover - should exit with code 0 because it discovers the Jenkins instance used for integration testing': function () {
- var result = exec('nestor discover');
- assert.equals(result.code, 0);
- assert.isTrue(result.output.length > 0);
- },
- 'executor - should exit with code 0 because executor list always exists': function () {
- var result = exec('nestor executor');
- assert.equals(result.code, 0);
- assert.isTrue(result.output.length > 0);
- },
- 'job - should exit with code 1 when job does not exist': function () {
- var result = exec('nestor job somenonexistingbuild');
- assert.equals(result.code, 1);
- assert.equals(result.output, 'Job somenonexistingbuild does not exist\n');
- },
- 'queue - should exit with code 0 because queue list always exists': function () {
- var result = exec('nestor queue');
- assert.equals(result.code, 0);
- assert.isTrue(result.output.length > 0);
- },
- 'ver - should exit with code 0 because it should return the version of Jenkins instance used for integration testing': function () {
- var result = exec('nestor ver');
- assert.equals(result.code, 0);
- assert.isTrue(result.output.length > 0);
- }
-});

0 comments on commit 02bd967

Please sign in to comment.