Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / chutzpah.json
Schema registry

chutzpah.json

Chutzpah configuration file

chutzpah.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your chutzpah.json and it validates in your browser — nothing is uploaded.

Validate a chutzpah.json → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
FrameworkstringDetermines what testing framework to use. This will override the other detection methods.
one of: "qunit", "jasmine", "mocha"
FrameworkVersionstringTells Chutzpah if it should use a different version of on of the test frameworks than the default one. Currently, the only framework this works for is Jasmine. As of the 3.1.0 release Chutzpah default to Jasmine 2.0 but if you want to use
ReferencesarrayThe references setting allows you to specify which files/folders to use/scan to find references. This is useful since it replaces the need to the ///<reference comments.
TestsarrayThe references setting allows you to specify which files/folders to use/scan to find references. This is useful since it replaces the need to the ///<reference comments.
EnginestringThe browser engine to use to run the tests. Default is Phantom but JSDOM and Chrome are available. If you choose Chrome you must have an instance of Chrome or Chromium on the machine that Chutzpah can find.
one of: "Phantom", "JSDom", "Chrome"
EngineOptionsobjectThe options to configure the chosen browser engine for Chutzpah to use.
EngineOptions.ChromeBrowserPathstringThe path to the chrome/chromium executable on the machine
ServerobjectServer settings let you enable to configure Chutzpah web server mode.
Server.EnabledbooleanDetermines if the web server mode is enabled.
default: false
Server.DefaultPortnumberThe default port to use. If this port is taken Chutzpah will try incrementing until it finds an available one.
Server.RootPathstringThe root path of the server. All file paths are relative to this and should be in a directory below or equal to this. Defaults to drive root.
TransformsarrayList of transformers to run after testing to generate output files
CompileobjectThis setting lets you describe in the Chutzpah.json file how to execute a command which can compile your source files to .js files. You tell Chutzpah what to execute and some information about what your executable does (like where to find
Compile.Extensionsarray<string>The extensions of the files which are getting compiled (e.g. .ts).
Compile.ExtensionsWithNoOutputarray<string>The extensions of files which take part in compile but have no build output. This is used for cases like TypeScript declaration files which share a .ts extension. They have .d.ts extension and are part of compilation but have no output
Compile.PathsarrayThe collection of path mapping from source directory/file to output directory/file.
Compile.WorkingDirectorystringThis is the working directory of the process which executes the command.
Compile.ExecutableanyOfThe path to an executable which Chutzpah executes to perform the batch compilation. Chutzpah will try to resolve the path relative to the settings directory. But if can't find the file there you must give it a full path.
default: null
Compile.ArgumentsanyOfThe arguments to pass to the command.
default: null
Compile.TimeoutintegerHow long to wait for compile to finish in milliseconds?
default: 30000
Compile.SkipIfUnchangedbooleanSkips the execution if all files Chutzpah knows about are older than all of the output files. This is defaulted to true but if you hit issues since it is possible Chutzpah might not know about all the files your compilation is using then
default: true
Compile.ModestringDetermines how this compile setting is used. By default it is in Executable mode where it will require you provide an executable which Chutzpah will run if it sees it finds missing .js for input file. If you set this to External then
default: "External"
one of: "Executable", "External"
Compile.UseSourceMapsbooleanConfigures whether .map files should be loaded (if available) to convert under-test JS line numbers to those of their original source files.
default: false
Compile.IgnoreMissingFilesbooleanShould Chutzpah ignore files it expects to find compiled. If set to true Chutzpah will log an error otherwise it will throw
default: false
TestFileTimeoutintegerThe time to wait for tests in a file to finish in milliseconds.
TestHarnessLocationModestringDetermines where to place the generated html test harness files. The default mode is TestFileAdjacent which means the harness is placed in the same directory as the test file. SettingsFileAdjacent means it is placed in the same directory
one of: "TestFileAdjacent", "SettingsFileAdjac…, "Custom"
TestHarnessReferenceModestring
one of: "Normal", "AMD"
TestHarnessDirectorystringWhen TestHarnessLocationMode is set to Custom this is either the relative or absolute path to the directory where to place the test harness.
RootReferencePathModestringThis property determines what directory a rooted reference path refers to.
default: "DriveRoot"
one of: "DriveRoot", "SettingsFileDirec…
CodeCoverageTimeoutintegerThe timeout in milliseconds for how long to wait to instrument each file for code coverage. Defaults to 5000ms.
default: 5000
CodeCoverageExecutionModestringIf Always, forces code coverage to run always. If Manual/null/not set, allows code coverage to run if invoked using test adapter, command line or context menu options (default). If Never, forces code coverage to never run.
one of: "Manual", "Always", "Never"
CodeCoverageSuccessPercentagenumberThe percentage of lines needing to be covered to show the coverage output as success or failure. By default this is 60.
CodeCoverageIncludesarray<string>The collection code coverage file patterns to include in coverage. These are in glob format. If you specify none all files are included.
CodeCoverageExcludesarray<string>The collection code coverage file patterns to exclude in coverage. These are in glob format. If you specify none no files are excluded.
CustomTestHarnessPathstringThe CustomTestHarnessPath setting allows you to override the default template Chutzpah uses for the HTML test harness. This is an advanced feature which should only be used as a last resort.
MochaInterfacestringThe name of the Mocha interface to use. Overrides the default detection mechanism.
one of: "bdd", "tdd", "qunit"
AMDBaseUrlstringSet the baseurl for Chutzpah to use when generating the test harness. Defaults to the test harness directory if not set.
AMDAppDirectorystringSets the root directory for your AMD paths. This is only needed if your baseUrl is a different location than your source directory. This is common if you are compiling from another language to JavaScript and copying those compiled files to
UserAgentstringThe user agent to use when making web requests
TestPatternstringWhen Chutzpah reports test results it also tells you what line they are on. The way this is accomplished is by having a regex for each testing framework which describes where to find the names of your tests.
EnableTestFileBatchingbooleanDetermines if batch all test files for this chutzpah.json file should be batched into one test harness. This will often make your test run much faster.
InheritFromParentbooleanDetermines if this settings file should inherit and merge with the settings of its parent settings file. The parent is found by recursively walking up the tree.
IgnoreResourceLoadingErrorsbooleanSuppress errors that are reported when a script request to load a url (e.g. xhr/script/image) fails.
EnableTracingbooleanLogs tracing information to a log file.
TraceFilePathstringThe path to write the trace file to. Defaults tp %temp%/chutzpah.log.
ParallelismnumberMax degree of parallelism for running tests. Defaults to number of CPUs
BrowserArgumentsobjectThe dictionary of browser name (keys) to corresponding browser arguments (values), i.e.; { 'chrome': '--allow-file-access-from-files' }.

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
anyOfJSON Schema Core, draft 2020-12§10.2.1.2 — "anyOf"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas