customized-it-block
v3.0.0
Published
Customized it block which accepts testcase id, testcase description, testcse steps and tags as arguments
Downloads
450
Readme
#customized-it-block
- This packages is a customization of the it block provided by jasmine
- It enables an user to provide testcase#, test case description, test case steps and tags to a test case
##Install ''' npm install customized-it-block --save-dev '''
##Usage
const cit = require('customized-it-block');
describe('', function() { cit('', '', [ '', '' ], function() { // expect statements }, ['@tags'] ); });
For example, refer the sample spec file provided in examples folder
##Reporting
- To get test case#, description and steps in reports, install reporter-for-cit package https://www.npmjs.com/package/reporter-for-cit
##Run test cases Adding tags to a test case is optional. But if you do add tags, we can filter test case execution by performing a grep on the tags Example: protractor conf.js --grep='@smoke'