Kui API Documentation - v11.0.0 / @kui-shell/test / Common
@kui-shell/test.Common
- after
- before
- dockerDescribe
- localDescribe
- localIt
- oops
- pDescribe
- pit
- proxyDescribe
- proxyIt
- refresh
- remoteIt
- restart
- setDebugMode
• expectedVersion: string
= version
non-headless targets in travis use the clients/default version
packages/test/src/api/common.ts:577
▸ Const
after(ctx
, f?
): HookFunction
This is the method that will be called when a test completes
Name | Type |
---|---|
ctx |
ISuite |
f? |
() => void |
HookFunction
packages/test/src/api/common.ts:387
▸ Const
before(ctx
, options?
): HookFunction
This is the method that will be called before a test begins
Name | Type |
---|---|
ctx |
ISuite |
options? |
BeforeOptions |
HookFunction
packages/test/src/api/common.ts:288
▸ Const
dockerDescribe(msg
, suite
): Suite
only execute the test suite in an environment that has docker
Name | Type |
---|---|
msg |
string |
suite |
() => void |
Suite
packages/test/src/api/common.ts:544
▸ Const
localDescribe(msg
, suite
): Suite
only execute the test suite in local
Name | Type |
---|---|
msg |
string |
suite |
() => void |
Suite
packages/test/src/api/common.ts:539
▸ Const
localIt(msg
, func
): Test
only execute the test in local
Name | Type |
---|---|
msg |
string |
func |
Func |
Test
packages/test/src/api/common.ts:534
▸ Const
oops(ctx
, wait?
): (err
: Error
) => Promise
<unknown
>
Name | Type | Default value |
---|---|---|
ctx |
ISuite |
undefined |
wait |
boolean |
false |
fn
▸ (err
): Promise
<unknown
>
Name | Type |
---|---|
err |
Error |
Promise
<unknown
>
packages/test/src/api/common.ts:430
▸ Const
pDescribe(msg
, suite
): Suite
only execute the test suite in electron or proxy+browser clients
Name | Type |
---|---|
msg |
string |
suite |
() => void |
Suite
packages/test/src/api/common.ts:562
▸ Const
pit(msg
, func
): Test
only execute the test in electron or proxy+browser client
Name | Type |
---|---|
msg |
string |
func |
Func |
Test
packages/test/src/api/common.ts:572
▸ Const
proxyDescribe(msg
, suite
): Suite
only execute the test suite in proxy+browser clients
Name | Type |
---|---|
msg |
string |
suite |
() => void |
Suite
packages/test/src/api/common.ts:557
▸ Const
proxyIt(msg
, func
): Test
only execute the test in proxy+browser client
Name | Type |
---|---|
msg |
string |
func |
Func |
Test
packages/test/src/api/common.ts:567
▸ Const
refresh(ctx
, wait?
, clean?
): Promise
<void
>
reload the app
Name | Type | Default value |
---|---|---|
ctx |
ISuite |
undefined |
wait |
boolean |
true |
clean |
boolean |
false |
Promise
<void
>
packages/test/src/api/common.ts:253
▸ Const
remoteIt(msg
, func
): Test
only execute the test in non-proxy browser
Name | Type |
---|---|
msg |
string |
func |
Func |
Test
packages/test/src/api/common.ts:552
▸ Const
restart(ctx
): Promise
<void
>
restart the app
Name | Type |
---|---|
ctx |
ISuite |
Promise
<void
>
packages/test/src/api/common.ts:234
▸ setDebugMode(): void
void