-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Execute a subset of tests
Karasu edited this page Jun 14, 2017
·
2 revisions
First please note that all jasmine suites (describe()) have to be wrapped in a main() function in .spec.ts files.
Prepend an 'f' to each of the describe() you wish to include. All other elements not starting with 'f' will henceforth be ignored when running npm test:
export function main() {
fdescribe('my suite', () => {
beforeEach(() => {...});
it('my spec', () => {...});
});
}
Prepend an 'f' to each of the it() you wish to include. All other elements not starting with 'f' will henceforth be ignored when running npm test:
export function main() {
describe('my suite', () => {
beforeEach(() => {...});
fit('my spec', () => {...});
});
}
Prepend an 'x' to each of the describe() you wish to exclude.
export function main() {
xdescribe('my suite', () => {
beforeEach(() => {...});
it('my spec', () => {...});
});
}
Prepend an 'x' to each of the it() you wish to exclude.
export function main() {
describe('my suite', () => {
beforeEach(() => {...});
xit('my spec', () => {...});
});
}