Skip to content

Commit

Permalink
test(create): waste less time on name variants (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse authored Nov 4, 2021
1 parent 593bbbd commit a6044dd
Showing 1 changed file with 3 additions and 54 deletions.
57 changes: 3 additions & 54 deletions tests/spec/create.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,68 +52,17 @@ function createAndBuild (projectname, projectid) {
}

describe('create', () => {
let prevTimeout;
beforeAll(() => {
prevTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 120 * 1000;
});
afterAll(() => {
jasmine.DEFAULT_TIMEOUT_INTERVAL = prevTimeout;
});

it('Test#001 : create project with ascii name, no spaces', () => {
const projectname = 'testcreate';
const projectid = 'com.test.app1';

return createAndBuild(projectname, projectid);
}, 240 * 1000); // first build takes longer (probably cold caches)

it('Test#002 : create project with ascii name, and spaces', () => {
const projectname = 'test create';
it('Test#002 : create project with complicated name', () => {
const projectname = '応応応応 hello & إثرا 用用用用';
const projectid = 'com.test.app2';

return createAndBuild(projectname, projectid);
});

it('Test#003 : create project with unicode name, no spaces', () => {
const projectname = '応応応応用用用用';
const projectid = 'com.test.app3';

return createAndBuild(projectname, projectid);
});

it('Test#004 : create project with unicode name 2, no spaces', () => {
const projectname = 'إثرا';
const projectid = 'com.test.app3.2';

return createAndBuild(projectname, projectid);
});

it('Test#005 : create project with unicode name, and spaces', () => {
const projectname = '応応応応 用用用用';
const projectid = 'com.test.app4';

return createAndBuild(projectname, projectid);
});

it('Test#006 : create project with ascii+unicode name, no spaces', () => {
const projectname = '応応応応hello用用用用';
const projectid = 'com.test.app5';

return createAndBuild(projectname, projectid);
});

it('Test#007 : create project with ascii+unicode name, and spaces', () => {
const projectname = '応応応応 hello 用用用用';
const projectid = 'com.test.app6';

return createAndBuild(projectname, projectid);
});

it('Test#008 : create project with ascii name, and spaces, ampersand(&)', () => {
const projectname = 'hello & world';
const projectid = 'com.test.app7';

return createAndBuild(projectname, projectid);
});
}, 120 * 1000);
});

0 comments on commit a6044dd

Please sign in to comment.