Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fix #8

Merged
merged 3 commits into from Apr 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions specs/adb.js
Expand Up @@ -8,16 +8,16 @@ var should = require('should'),
adb = require('../lib/adb');

describe("adb", function(){
it("should have launch", function(){
(process.env.JENKINS ? it.skip : it)("should have launch", function(){
should(adb.launch).be.a.function;
});

it("should be able to launch example app",function(done){
(process.env.JENKINS ? it.skip : it)("should be able to launch example app",function(done){
this.timeout(30000);

var project_dir = path.join(__dirname,'..','example'),
cwd = process.cwd();

process.chdir(project_dir);
try {
var child = spawn('ant',['debug']);
Expand All @@ -36,7 +36,7 @@ describe("adb", function(){
var apk = path.join(project_dir,'bin','TestApp-debug.apk');
should(fs.existsSync(apk)).be.true;

function callback (err){
function callback (err){
done(err);
}

Expand All @@ -63,4 +63,4 @@ describe("adb", function(){
process.chdir(cwd);
}
});
});
});
4 changes: 2 additions & 2 deletions specs/env.js
Expand Up @@ -7,7 +7,7 @@ var should = require('should'),

describe("env", function(){

it("should be able to find SDK and NDK", function(done){
(process.env.JENKINS ? it.skip : it)("should be able to find SDK and NDK", function(done){
var options = {arch:'armv7',sdk:'18'};
var android = env.find(options,done);
should(options.sdk).be.ok;
Expand Down Expand Up @@ -39,5 +39,5 @@ describe("env", function(){
fs.existsSync(android.toolchain_libstdcpplib).should.be.true;
done();
});

});