0.1.1 • Published 9 years ago

grunt-test-case-reporter v0.1.1

Weekly downloads
7
License
-
Repository
github
Last release
9 years ago

Test case reporter

Test case reporter is a Grunt plugin that creates a Test case report based on annotated tests.

Installation

Install the npm package:

npm install grunt-test-case-reporter

And then load the plugin in the Gruntfile using:

grunt.loadNpmTasks('grunt-test-case-reporter');

Configuration

In your project's Gruntfile, add a section named test-case-report to the data object passed into grunt.initConfig(). Here you can specify the folder where your tests are defined.

grunt.initConfig({
  'test-case-report': {
    options: {
      path: './tests'
    }
  },
});

Run

Test case reporter defines one task to generate reports called test-case-report.

grunt test-case-report

Test case annotation example

/**
 * @feature User accounts
 * @prerequisite User Peter
 * @prerequisite User Marek
 * @step Log in as Peter
 * @step Navigate to the View users page
 * @assert Marek is listed on the screen
 * @state manual
 */
"User can view other users": function () {
  console.log("* This test is not automated yet *");
}