ToolMatter
Your Apps in Action
Risersoft
Buy
Try
Explore
Documentation
Public
Use this form to visualize Chutzpah configuration file.
{{repoTitle.MainEntity}}
Framework - Determines what testing framework to use. This will override the other detection methods.
FrameworkVersion - Tells 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 the 1.0 line for Jasmine still pass '1' for FrameworkVersion.
Engine - The 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.
References The 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.
#
Actions
{{$index+1}}.
Tests The 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.
#
Actions
{{$index+1}}.
.EngineOptions
_
EngineOptions.ChromeBrowserPath - The path to the chrome/chromium executable on the machine
.Server
_
Server.Enabled - Determines if the web server mode is enabled.
Server.DefaultPort - The default port to use. If this port is taken Chutzpah will try incrementing until it finds an available one.
Server.RootPath - The 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.
Transforms List of transformers to run after testing to generate output files
#
Actions
{{$index+1}}.
.Compile
_
Compile.WorkingDirectory - This is the working directory of the process which executes the command.
Compile.Executable - The 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.
Compile.Arguments - The arguments to pass to the command.
Compile.Timeout - How long to wait for compile to finish in milliseconds?
Compile.SkipIfUnchanged - Skips 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 you can turn this off. Ideally you should tell Chutzpah about these files using the references and tests settings since this setting helps Chutzpah not need to even invoke the executable if it figures out it’s not needed.
Compile.Mode - Determines 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 Chutzpah will ignore the Executable, Arguments settings and assume you have some external process which is compiling. In this case Chutzpah will use the SourceDirectory and OutDirectory options to try to find your .js files for the input files. If it can't find them it will trace an error but still attempt to proceed.
Compile.UseSourceMaps - Configures whether .map files should be loaded (if available) to convert under-test JS line numbers to those of their original source files.
Compile.IgnoreMissingFiles - Should Chutzpah ignore files it expects to find compiled. If set to true Chutzpah will log an error otherwise it will throw
TestFileTimeout - The time to wait for tests in a file to finish in milliseconds.
TestHarnessLocationMode - Determines 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 as the chutzpah.json file. Custom mode lets you specify a custom path to the directory.
TestHarnessReferenceMode
TestHarnessDirectory - When TestHarnessLocationMode is set to Custom this is either the relative or absolute path to the directory where to place the test harness.
RootReferencePathMode - This property determines what directory a rooted reference path refers to.
CodeCoverageTimeout - The timeout in milliseconds for how long to wait to instrument each file for code coverage. Defaults to 5000ms.
CodeCoverageExecutionMode - If 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.
CodeCoverageSuccessPercentage - The percentage of lines needing to be covered to show the coverage output as success or failure. By default this is 60.
CustomTestHarnessPath - The 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.
MochaInterface - The name of the Mocha interface to use. Overrides the default detection mechanism.
AMDBaseUrl - Set the baseurl for Chutzpah to use when generating the test harness. Defaults to the test harness directory if not set.
AMDAppDirectory - Sets 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 a different folder. For example if you have all your .ts files in /src and you compile them to a /out directory then your AMDBaseUrl is /out and AMDAppDirectory is /src. Defaults to the test harness directory if not set.
UserAgent - The user agent to use when making web requests
TestPattern - When 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.
EnableTestFileBatching - Determines 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.
InheritFromParent - Determines 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.
IgnoreResourceLoadingErrors - Suppress errors that are reported when a script request to load a url (e.g. xhr/script/image) fails.
EnableTracing - Logs tracing information to a log file.
TraceFilePath - The path to write the trace file to. Defaults tp %temp%/chutzpah.log.
Parallelism - Max degree of parallelism for running tests. Defaults to number of CPUs
Compile.Extensions The extensions of the files which are getting compiled (e.g. .ts).
#
Values
Actions
{{$index+1}}.
Compile.ExtensionsWithNoOutput 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. You must tell Chutzpah about these if you want the SkipIfUnchanged setting to work. Otherwise Chutzpah will think these are missing output.
#
Values
Actions
{{$index+1}}.
Compile.Paths The collection of path mapping from source directory/file to output directory/file.
#
Actions
{{$index+1}}.
CodeCoverageIncludes The collection code coverage file patterns to include in coverage. These are in glob format. If you specify none all files are included.
#
Values
Actions
{{$index+1}}.
CodeCoverageExcludes The collection code coverage file patterns to exclude in coverage. These are in glob format. If you specify none no files are excluded.
#
Values
Actions
{{$index+1}}.
.BrowserArguments
_
Download Json
{{message}}