Skip to content

Commit f234f9d

Browse files
author
Zdravko
authored
Merge pull request #93 from NativeScript/zbranzov/fix-ios-test
fix: ios tests since we removed the command from the package.json
2 parents 9685233 + 2fd9293 commit f234f9d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

seed-tests/postclone.tests.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ describe('postclone', function () {
141141
});
142142
});
143143

144-
it('should prepare a working demo with passing tests', function (done) {
145-
var testsCommand = "cd " + constants.SEED_COPY_LOCATION + "/src && npm run test";
146-
testsCommand += testUtils.isAndroid() ? ".android" : ".ios";
144+
// Xcode 8.3 is not supported by ios runtimes but using Xcode >=9.0 in travis fails to setup a simulator
145+
// Therefore, we stop running unit tests (which are unprofitable) until solution is found on iOS
146+
it('should prepare a working demo and run test if Android', function (done) {
147+
var testsCommand = "cd " + constants.SEED_COPY_LOCATION + "/src && ";
148+
testsCommand += testUtils.isAndroid() ? "npm run test.android" : "npm run tsc && cd ../demo && tns build ios";
147149
exec(testsCommand, function (error, stdout, stderr) {
148-
expect(error).toBeNull();
150+
expect(error).toBeNull();
149151
done();
150152
});
151153
});

0 commit comments

Comments
 (0)