
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
manual-yaml
Advanced tools
manual-yaml is a standardised method for generating maunal tests. The tool will then convert manual tests to e2e tests automatically for you.
Table of Contents generated with DocToc
An npm package to normalise manual test writing into yaml files. The normalised form of the manual tests can then be automatically used to generate all the required stubs for e2e testing.
Installed globally to your local machine:
npm i -g manual-yaml
Usage: index [options]
Options:
-v, --version output the version number
-S, --skeletonGenerate Generate a skeleton structure of yml manual tests within the current folder
-s, --ymlSuiteGenerate [string] Generate a single yml test suite to the current dir. Pass the name of test as a string eg tests/contact-us/sendMsg.yml
-e, --e2eGenerate Generate e2e stubs for a directory the command is used within, ie "./"
-t, --templates [string] If passed should be the path to custom templates for manual-yaml
-f, --format [string] Defaults to nightwatchjs if not passed. The string should match the name of the tpl minus the .njk file ext. To use an alternate e2e output please use the custom templates directive. Alternatively please send a pull request to merge in your favourite e2e test env. tpl.
-x, --excel Generates a spreadsheet manual testing session based on the Yaml tests
-h, --help output usage information
manual-yaml -S
NB: If there is already a folder named 'yml' then manual-yaml will stop and let you know.
manual-yaml -s yml/tests/contact-us/sendMsg.yml
NB: If this test already exists it will stop and let you know.
NB2:
If you pass the -t
to override the templates directory you have the option to use your own yml tpl (see below).
(rough and ready solution at present)
You can generate a spreadsheet from the yaml files to assist in keeping track of the progress of the tests.
manual-yaml -e
NB: It will not overwrite any tests already found.
By default manual-yaml will use a built in template for nightwatchjs to generate the e2e stubs. You can instruct manual-yaml to use another template by passing its name minus the .njk
extension:
manual-yaml -e -f someothertestrig
Currently there is only 1 built in template and this is for nightwatchjs, to use manual-yaml with another test runner, please use the -f
directive in combination with the -t
custom templates (documented below) eg: -f testcafe -t /home/me/manual-yaml-templates
will instruct manual-yaml to use the testcafe test runner and the template is in the custom templates directory.
Using the --templates
or -t
for short directive you are able to overwrite the directory for the templates and thus use your own.
manual-yaml -e -t /home/me/manual-yaml-templates
The provided custom tpl directory should contain at least 1 folder with the tests, eg:
test-suites/
------------ karma.njk
------------ nightwatchjs.njk
------------ testcafe.njk
You can then switch between your own custom tpls with ease (don't forget the default is nightwatchjs):
manual-yaml -e -f testcafe -t /home/me/manual-yaml-templates
FAQs
manual-yaml is a standardised method for generating maunal tests. The tool will then convert manual tests to e2e tests automatically for you.
The npm package manual-yaml receives a total of 0 weekly downloads. As such, manual-yaml popularity was classified as not popular.
We found that manual-yaml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.