Skip to content

Commit

Permalink
added tests directory
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopsinha committed Apr 23, 2012
1 parent 6cac031 commit 544a616
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 1 addition & 11 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,14 @@ function vmcPush(appName) {
assert.equal(err, undefined, "Unexpected err in login: " + util.inspect(err));
var appDir = './fixtures/' + appName;

console.log(fs.readdirSync('./fixtures'));
console.log(fs.readdirSync('./fixtures/' + appName));


// delete our test app if already exists (purposely ignore any errors)
vmc.deleteApp(appName, function(err, data){
vmc.push(appName, appDir, function(err) {
console.log("done with the push");
assert.equal(err, undefined, "Unexpected err in push: " + util.inspect(err));
vmc.start(appName, function(err, data){
vmc.apps(function(err, apps) {
console.dir(apps);
console.log("DONE!\n\n");

vmc.apps(function(err, apps) {
console.dir(apps);
console.log("DONE!\n\n");
});
console.log("done successfully starting app");
});
});
});
Expand Down
9 changes: 9 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To run tests

### Clone a repository here


### Set the github service hook


### Run test checkins and see if the app gets deployed to CF
1 change: 1 addition & 0 deletions tests/node-sample
Submodule node-sample added at 1d890a

0 comments on commit 544a616

Please sign in to comment.