Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ClientOptions

Index

Properties

Optional args

args: string[]
default

undefined

description

When karma run is passed additional arguments on the command-line, they are passed through to the test adapter as karma.config.args (an array of strings). The client.args option allows you to set this value for actions other than run. How this value is used is up to your test adapter - you should check your adapter's documentation to see how (and if) it uses this value.

Optional captureConsole

captureConsole: boolean
default

true

description

Capture all console output and pipe it to the terminal.

Optional clearContext

clearContext: boolean
default

true

description

Clear the context window If true, Karma clears the context window upon the completion of running the tests. If false, Karma does not clear the context window upon the completion of running the tests. Setting this to false is useful when embedding a Jasmine Spec Runner Template.

Optional clientDisplayNone

clientDisplayNone: boolean
default

false

description

Set style display none on client elements. If true, Karma does not display the banner and browser list. Useful when using karma on component tests with screenshots

Optional runInParent

runInParent: boolean
default

false

description

Run the tests on the same window as the client, without using iframe or a new window

Optional useIframe

useIframe: boolean
default

true

description

Run the tests inside an iFrame or a new window If true, Karma runs the tests inside an iFrame. If false, Karma runs the tests in a new window. Some tests may not run in an iFrame and may need a new window to run.

Generated using TypeDoc