Miss any of our Open RFC calls?Watch the recordings here! »

protractor-bootstrap-reporter

0.0.8 • Public • Published

protractor-bootstrap-reporter

Build Status

Bootstrap Html reporter for protractor and jasmine2 :

  • provides json / html & png formats for each test/spec
  • including bootstrap layout
  • protractor.config :

        let phantomjs = require('phantomjs-prebuilt');
        exports.config = {
            capabilities: {
                'browserName': 'phantomjs',
                'phantomjs.binary.path': phantomjs.path,
            },
            framework: 'jasmine2',
            directConnect: false,
            specs: ['spec/**/*.e2e.js'],
            onPrepare: function() {
                const ProtractorBootstrapReporter  = require('protractor-bootstrap-reporter');
                jasmine.getEnv().addReporter(new ProtractorBootstrapReporter({
                    path: 'assets/report'
                }));
                browser.driver.manage().window().setSize(960, 600);
            }
        };
  • generated reporting files :

    • ./spec/report/html/(spec).html
    • ./spec/report/json/(spec).json
    • ./spec/report/png/(spec).png
  • complete html report on browser:

    • ./spec/report/html/index.html

Install

npm i protractor-bootstrap-reporter

DownloadsWeekly Downloads

19

Version

0.0.8

License

BSD-2-Clause

Last publish

Collaborators

  • avatar