testpilot
Test generation using large language models
File Explorer
- ci.yml
- measure-coverage.yml
- release.yml
- run-experiment.yml
- benchmarks.txt
- non_trivial_coverage.sh
- parse_packages.js
- .gitignore
- editDistance.ts
- generate_diversity_report.ts
- generate_report.ts
- package_stats.ts
- parse_reports.ts
- performanceMeasurer.ts
- run.ts
- testCollectorHelper.ts
- testResultCollector.ts
- tsconfig.json
- momentjs_test_generation.md
- testGenerationScript.ts
- AssertionQuality.qll
- FailureClassification.ql
- MissingDone.ql
- RefinerContributions.ql
- TestFixedByRetry.ql
- TrivialTest.ql
- UnhelpfulRefinement.ql
- TestSnippetMining.expected
- TestSnippetMining.ql
- .gitignore
- codeql-pack.lock.yml
- qlpack.yml
- README.md
- codex.ts
- completionModel.ts
- coverage.ts
- docSnippets.ts
- exploreAPI.ts
- extensionPoints.ts
- generateTests.ts
- index.ts
- mineSnippets.ts
- mochaValidator.ts
- mockModel.ts
- promptCrafting.ts
- report.ts
- snippetHelper.ts
- syntax.ts
- testResultCollector.ts
- testValidator.ts
- tsconfig.json
- coffee-fencing.md
- js-fencing-1.md
- non-lang-fencing.md
- ts-fencing-1.md
- APIFunction.ts
- docSnippets.ts
- editDistance.ts
- exploreAPIs.ts
- generateTests.ts
- mockModel.ts
- promptCrafting.ts
- syntax.ts
- test-generation.ts
- tsconfig.json
- espree.d.ts
- .gitignore
- .npmignore
- CODE_OF_CONDUCT.md
- CODEOWNERS
- CONTRIBUTING.md
- LICENSE
- package-lock.json
- package.json
- README.md
- SECURITY.md
- SUPPORT.md
- tsconfig-base.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
mocha
View Details ▼
mocha
A feature-rich JavaScript test framework.
mocha
Run tests with default configuration or as configured in `mocha.opts`:
mocha {{path/to/test_directory}}
Run tests contained at a specific location:
mocha {{[-g|--grep]}} {{regex}}
Run tests that match a specific `grep` pattern:
node
View Details ▼
node
Server-side JavaScript platform (Node.js).
node {{path/to/file}}
Run a JavaScript file:
node
Start a REPL (interactive shell):
node --watch {{path/to/file}}
Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+):
npm run
View Details ▼
npm run
Run a script.
npm run
List available scripts:
npm run {{script_name}}
Run a script:
npm run {{script_name}} -- {{argument}} {{--option}}
Pass arguments to a script:
npm
View Details ▼
npm
JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.
npm init {{[-y|--yes]}}
Create a `package.json` file with default values (omit `--yes` to do it interactively):
npm {{[i|install]}}
Download all the packages listed as dependencies in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
