diff --git a/README.md b/README.md index baf3b28b7..b3a4083fa 100644 --- a/README.md +++ b/README.md @@ -5,18 +5,39 @@ ## Install ```sh -$ npm install --save codeceptjs +$ npm install -g codeceptjs ``` ## Usage -```js -var codeceptjs = require('codeceptjs'); +``` +codeceptjs init +``` + +WIP +## Examples + +```js +var assert = require('assert'); +Feature('CodeceptJS Demonstration'); + +Scenario('test some forms', (I) => { + I.amOnPage('http://simple-form-bootstrap.plataformatec.com.br/documentation'); + I.fillField('Email', 'hello@world.com'); + I.fillField('Password', '123456'); + I.checkOption('Active'); + I.checkOption('Male'); + I.click('Create User'); + I.see('User is valid'); + I.dontSeeInCurrentUrl('/documentation'); +}); ``` +WIP + ## License MIT © [DavertMik](http://codegyre.com) diff --git a/gulpfile.js b/gulpfile.js index eaab3fce0..14a2b9b34 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -55,4 +55,5 @@ gulp.task('coveralls', ['test'], function () { .pipe(coveralls()); }); +gulp.task('prepublish', []); gulp.task('default', ['static', 'test', 'coveralls']);