Socket
Socket
Sign inDemoInstall

lab-bamboo-reporter

Package Overview
Dependencies
148
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lab-bamboo-reporter

Atlassian Bamboo Reporter for Hapi's Lab test runner


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
6.22 kB
Created
Weekly downloads
 

Readme

Source

lab-bamboo-reporter

Bamboo reporter for Hapi's Lab test runner

Inspired by https://github.com/issacg/mocha-bamboo-reporter

Usage

If lab is installed globally:

lab -r ./node_modules/lab-bamboo-reporter [-o outputfilename.ext]

The above relative path to node_modules is so a globally-installed lab knows to look in your local install. Otherwise, you can run using the local install of lab:

./node_modules/.bin/lab -r lab-bamboo-reporter [-o outputfilename.ext]

Integrating mocha & bamboo with mocha-bamboo-reporter

Download and install the Node.js Bamboo Plugin from the Atlassian Marketplace from inside your Bamboo installation.

Then, in your package.json file, add a devDependency for "lab-bamboo-reporter", and a script "bamboo" as outlined below...

package.json

...
"devDependencies": {
    ...
    "lab": "^5.0.0",
    "lab-bamboo-reporter": "^1.1.0"
}

"scripts": {
    ...
    "bamboo": "./node_modules/.bin/lab -r lab-bamboo-reporter -o bamboo.json"
}
  • In Bamboo, create an "npm task" with command run-script bamboo
  • Then, in Bamboo add a "Parse lab results" task which runs afterwards to parse the results from lab
  • If you don't do a full checkout on each build, make sure you add a task to delete bamboo.json BEFORE the npm run-script bamboo task (a simple script task that runs rm -f bamboo.json should do the trick)

Keywords

FAQs

Last updated on 20 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc