Skip to content

This module is Serverless Framework plugin. Create UnitTest boilerplate in a Serverless Project.

Notifications You must be signed in to change notification settings

horike37/serverless-unittest-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless Build Status

Serverless UnitTest Boilerplate

Overview

This module is Serverless Framework plugin. Create UnitTest boilerplate in a Serverless Project. Generated .travis.yml and tests/all.js.

Install

Execute npm install in your Serverless project.

$ npm install serverless-unittest-boilerplate

Add the plugin to your s-project.json file

"plugins": [
  "serverless-unittest-boilerplate"
]

Add the scripts to pakage.json file

"scripts": {
    "test": "export NODE_PATH=`npm root -g` && mocha tests/all"
}

Install mocha and chai. Run command below;

$ npm install chai --save-dev
$ npm install mocha --save-dev

Usage

Run command below.

$ serverless test scaffold

Sample Screen

The screen is succeed to build in travis

About

This module is Serverless Framework plugin. Create UnitTest boilerplate in a Serverless Project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published