This runs a package's "test" script, if one was provided.
The npm version depends on the Node.js version.
Patterns to include in execution and reports.
Note: Inspecode runs npm test for each Node.js project and the input patterns are used for selecting Node.js projects containing input files. Therefore, the files excluded by the patterns are processed if they are contained in Node.js projects that also contain input files, and you may even see logs related to the excluded files in the job console.
Patterns to exclude from execution and reports.
Note: Just like
input:, the ignore patterns may not be applied completely when running npm test.
Amount of CPU. The default machine has
0.25 CPU with
960 MiB RAM.
No tool specific severity levels are available.
Note: The incremental analysis cannot be supported for npm test. This is because npm test runs arbitrary scripts for testing and the results on unchanged files can be affected by changed files.
With default options:
inspecode: npm-test: default
With custom machine:
inspecode: npm-test: machine: cpu: 1.5 # 1.5 CPU, 5760 MiB RAM
Inspecode searches your repository for
package.json files having test scripts and runs
npm install at each directory where
package.json is placed in order to install dependencies such as test runner packages.
As of now, Inspecode can install: