Who Created chercher tech jasmine reporter ?

1.0.3 version released on 7th April 2019. Creates a single report for parallel Run

Chercher tech jasmine reporter is created by a team lead by Pavankumar, and the team members are:

What are the technologies that can use chercher tech jasmine reporter ;

Chercher tech jasmine reporter can be used with any technology where they use the Jasmine framework for testing the code. This reporter is mostly used with JavaScript and its varieties like Typescript, Coffee Script.

For using chercher tech reporter, it is mandatory to have jasmine in your system.

Installation

You can install the chercher tech jasmine reporter by entering following command in your Command prompt/Terminal

npm install chercher-tech-jasmine-reporter

or you can install the package in global

npm install chercher-tech-jasmine-reporter -g

Subscribe to my youtube channel :

How to use chercher-tech-jasmine-reporter

After installation go to your conf file where you have configured your jasmine add below block of code if you do not have Onprepare method

Configuration for non-protractor people :

As you might aware that jasmine can be used with unit testing of javascript code and its variants; if you do not have javascript code, please use the below configuration.

// An example configuration file
var reporter = require('chercher-tech-jasmine-reporter');
exports.config = {
/*
based on your requirements
*/

    onPrepare: function() {
      var ChercherTechJasmineReporter = reporter.ChercherTechJasmineReporter;
      jasmine.getEnv().addReporter(new ChercherTechJasmineReporter({
          showSkipped:false,
          showLineChart:true
      }));
    },
    onComplete:function(exitcode){
      reporter.write_consolidated()
    },

    afterLaunch:function(exitcode){
      return new Promise(function(resolve){
        reporter.processResults()
        return 0
      })
    }
};

Configuration for non-protractor people :

When you are using the jasmine with protractor, then you might need to take screenshots on fail, sometimes you might do not want to take screenshots at all. Set the values accordingly

// An example configuration file
var reporter = require('chercher-tech-jasmine-reporter');
exports.config = {
/*
based on your requirements
*/

    onPrepare: function() {
      var ChercherTechJasmineReporter = reporter.ChercherTechJasmineReporter;
      jasmine.getEnv().addReporter(new ChercherTechJasmineReporter({
          screenshotOnFail :true,
          showSkipped:false,
          browser:browser,
          showLineChart:true
      }));
    },
    onComplete:function(exitcode){
      reporter.write_consolidated()
    },

    afterLaunch:function(exitcode){
      return new Promise(function(resolve){
        reporter.processResults()
        return 0
      })
    }
};

Parameters :

Using the below parameter, you can alter the report according to your needs.

  • screenshotOnFail : Capture the screenshot on the failure of test cases, i.e. it block, if you do not provide browser object then it will not take screenshots
  • showSkipped : We have added this option because sometime you might have n-number of the test, but if you are running only one test case from the describe block, then you might get the result in a report for the skipped Describe blocks. these Skips are more it would occupy a lot of page space, so you can set this value if you do not want to see the skipped describe blocks.

    A describe block is considered as skipped only if all the it blocks are skipped in that describe block.
  • browser : Browser object is important for taking a screenshot in protractor, if your execution does not involve browser then you can avoid the parameter
  • showLineChart : In the below section, you can see a line chart is drawn, stories as X axis and status as y axis, if you do not want the line chart, then set this parameter to false. By default, the showLineChart value is true.

Sample Report Images

Line charts and details :

Line chart provides the details execution graph, from the line chart you can get to know if there are any dependency failures because of previous test cases. You can turn it off if you like line charts in chercher tech report

Pie Charts :

Pie charts provide calculations like how many tests are passed and how many tests are failed and skipped. It will also provide the number of steps/pass/fail/skips, along with pass percentage pie chart in chercher tech report

Tests and Details :

In this section, you will see the details of the user stories and test cases; we will get the details of failures. [Screenshot is only applicable if you are running the test in the browser.] test details in chercher tech report

FAQ

Who can use it :

Anybody can use it as long as they want to use it, but credits should go to the actual creator

Do I need to pay to use it :

Hell, NO, for organizations as well

Do I need to get Permission to use chercher tech reporter :

Nope

Do I need to get permission to republish it :

YES, you should, get our details from About us Page

What is the first version name :

0.0.6