Skip to content

Commit

Permalink
#129 move generated files by tests to test-tmp
Browse files Browse the repository at this point in the history
Former-commit-id: 0254d6a
  • Loading branch information
Zsolt Lattmann committed Feb 9, 2015
1 parent bc94694 commit da800c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ bin
*/.idea
*.class

input.json
output.json

/node_modules

*.log
Expand Down
3 changes: 3 additions & 0 deletions test-tmp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!README.md
3 changes: 3 additions & 0 deletions test-tmp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add all test generated artifacts for debugging purposes into this directory.

Do _NOT_ check in anything except the .gitingore file and this readme.
5 changes: 3 additions & 2 deletions test/core.serialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require('./_globals.js');
var WebGME = require('../webgme'),
FS = require('fs'),
PATH = require('path'),
storage = new WebGME.serverUserStorage({host:'127.0.0.1',port:27017,database:'multi'}),
requirejs = require('requirejs');
CANON = requirejs('../src/common/util/canon');
Expand Down Expand Up @@ -129,8 +130,8 @@ describe('Core#Serialization',function(){
return done(err);
}
eData = exp;
FS.writeFileSync('input.json',JSON.stringify(iData,null,2));
FS.writeFileSync('output.json',JSON.stringify(eData,null,2));
FS.writeFileSync(PATH.join('test-tmp', 'input.json'),JSON.stringify(iData,null,2));
FS.writeFileSync(PATH.join('test-tmp', 'output.json'),JSON.stringify(eData,null,2));
if(JSON.stringify(iData) !== JSON.stringify(eData)){
return done(new Error('the two object differs'));
}
Expand Down

0 comments on commit da800c2

Please sign in to comment.