npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

zephyr-protractor-reporter-rc

v1.2.4

Published

Create a Zephyr tests using your protractor conf for your Jira project.

Downloads

4

Readme

zephyr-protractor-reporter

Create a Zephyr tests for your Jira project.

Given a project Key, this library will create a test case for each it you have on your spec file.

Dependencies

You must have your Jira token generated, if you don't have it you can create one accessing Jira's webpage.

You must have your Zephyr token generated, if you don't have it you can create one accessing the Dashboard of your project, clicking on tests and then API keys.

Installation

npm i zephyr-protractor-reporter-rc

How to use

You will have to create a separated file in order to put your credentials and options for using it.

Options

Creating your options in zephyr.conf.js.

const options = {
    //your project Id number
    projectId: 8888,
    //host of your project
    host: 'https://your.host.net',
    //Jira username and token
    jiraApi : {
        username : '[email protected]',
        apiToken : 'yourtoken'
    },
    //Zapi username and token
    ZApi : {
        username : '[email protected]',
        accessKey : 'yourZapiAccessKey',
        secretKey : 'yourZapiSecretKey'
    }
}

module.exports = options;

Protractor configuration

Configuration for your protractor file

const options = require('./zephyr.conf');
const ZapiReporter = require('zephyr-protractor-reporter-rc');

let onPrepareDefer;
let onCompleteDefer;

exports.config = {
  allScriptsTimeout: 11000,
  specs: [
    './src/specs/**/*.spec.ts'
  ],
  capabilities: {
    'browserName': 'chrome',
    'chromeOptions': {
      'args': ['--start-maximized']
    }
  },
  directConnect: true,
  baseUrl: 'http://localhost:4200/',
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30000,
    print: function() {}
  },
  onPrepare() {
    browser.ignoreSynchronization = true;
    require('ts-node').register({
      project: require('path').join(__dirname, './tsconfig.e2e.json')
    });

    onPrepareDefer = protractor.promise.defer();
    onCompleteDefer = protractor.promise.defer();
      try {
        jasmine.getEnv().addReporter(ZapiReporter(onPrepareDefer, onCompleteDefer, browser, options));
      }
      catch(err) {
          console.log(err)
      }
      return onPrepareDefer.promise;
      //You can unactive jasmine reporter
    // jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  },
  'onComplete': function() {
    return onCompleteDefer.promise;
  },
  useAllAngular2AppRoots: true
};

Spec

Inside of your spec file you should create an association between your it and your issue key using the @ symbol

Given 'web-feature-22' as issue key, your spec file should look like this.

describe('Your describe here', () => {
    // it will create an Ad hoc execution.
    it('should create an Ad hoc execution@web-feature-22', async () => {
      expect(2).toEqual(2);
    });
    // it will not affect zephyr.
    it('should do something...', async () => {
      expect(2).toEqual(2);
    });
}

Result

Inside of your terminal you will have a colorful feedback step.

Terminal Result

Inside of your Jira project you will have an execution with your username and the expected result.

Jira Result

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Vinicius Araujo

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details