Installations
npm install @financial-times/n-automation
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
^8.9.0
Node Version
8.9.0
NPM Version
5.5.1
Score
56.2
Supply Chain
75.3
Quality
78.2
Maintenance
25
Vulnerability
95.8
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (96.11%)
Makefile (3.89%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Financial-Times
Download Statistics
Total Downloads
13,747
Last Day
27
Last Week
80
Last Month
222
Last Year
787
GitHub Statistics
6 Stars
135 Commits
2 Forks
77 Watchers
11 Branches
28 Contributors
Updated on Jan 28, 2023
Package Meta Information
Latest Version
2.4.0
Package Id
@financial-times/n-automation@2.4.0
Unpacked Size
448.43 kB
Size
397.84 kB
File Count
10
NPM Version
5.5.1
Node Version
8.9.0
Total Downloads
Cumulative downloads
Total Downloads
13,747
Last Day
3.8%
27
Compared to previous day
Last Week
48.1%
80
Compared to previous week
Last Month
282.8%
222
Compared to previous month
Last Year
-27.3%
787
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
n-automation 
Run automated regression tests for your app using nightwatch.js and get results on Slack and email.
Installation
npm install @financial-times/n-automation
Usage
Makefile
Write a regression
recipe on your Makefile containing the tests you'd like to run, passing the n-automation
reporter to nht nightwatch
:
1REPORTER = ./node_modules/@financial-times/n-automation/build/reporter.js 2 3regression: 4 nht nightwatch -c nightwatch.js path/to/test.js --reporter ${REPORTER} 5 nht nightwatch -c nightwatch.js path/to/anotherTest.js --reporter ${REPORTER} 6 ...
Init
Init n-automation
in an independent file somewhere in your project, for example jobs/run-regression.js
:
1const Automation = require('@financial-times/n-automation'); 2 3Automation.run({ 4 appName: 'Your App Name', 5 nightwatchJson: require('../nightwatch.js') 6});
Only pass in nightwatchJson
if your project has a nightwatch config. If not, send only appName
and n-automation
will default to the n-heroku-tools
nightwatch config file
Env Variables
process.env.SLACK_URL
Slack Incoming Webhook Integration URL for the channel to notifyprocess.env.SLACK_MENTIONS
Slack users to mention on failure (optional)process.env.REGRESSION_RECIPIENTS
email addresses of the people to notify on test failure
Heroku Schedule
Schedule your job with something like the Heroku Scheduler. Once a day is recommended.
Email on failure
Full nightwatch output will be sent to the email addresses above whenever a test fails.
Examples
See next-signup

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
Found 0/19 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 17 are checked with a SAST tool
Score
3
/10
Last Scanned on 2025-02-17
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More