FunctionalTest

Show Deprecated
Deprecated

Deprecated. Use TestService instead

Summary

Properties

The description of the FunctionalTest.

Events

Methods

Error(message: string): void  


Failed(message: string): void  

Prints a red message to the output, prefixed by "TestService: ".

Pass(message: string): void  


Passed(message: string): void  


Warn(message: string): void  

Prints if a condition is true, otherwise prints a warning.

Properties

Description

The description of the FunctionalTest.

Events

Methods

Error

void

Parameters

message: string
Default Value: ""

Returns

void

Failed

void

Prints a red message to the output, prefixed by "TestService: ".

Parameters

message: string
Default Value: ""

Returns

void

Pass

void

Parameters

message: string
Default Value: ""

Returns

void

Passed

void

Parameters

message: string
Default Value: ""

Returns

void

Warn

void

Prints if a condition is true, otherwise prints a warning.

Parameters

message: string
Default Value: ""

Returns

void

Code Samples

FunctionalTest:Warn1

1local TestService = game:GetService("TestService")
2
3TestService:Warn(false, "this action is invalid")