FunctionalTest

Show Deprecated
Deprecated

Deprecated. Use TestService instead

Summary

Properties

The description of the FunctionalTest.

Events

Methods

Error(message: string): nil  


Failed(message: string): nil  

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

Pass(message: string): nil  


Passed(message: string): nil  


Warn(message: string): nil  

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

Properties

Description

The description of the FunctionalTest.

Events

Methods

Error

Parameters

message: string
Default Value: ""

Returns

Failed

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

Parameters

message: string
Default Value: ""

Returns

Pass

Parameters

message: string
Default Value: ""

Returns

Passed

Parameters

message: string
Default Value: ""

Returns

Warn

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

Parameters

message: string
Default Value: ""

Returns

Code Samples

FunctionalTest:Warn1

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