FunctionalTest

Show Deprecated
DEPRECATED

Deprecated. Use TestService instead

Summary

Properties

The description of the FunctionalTest.

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.

Events

Properties

Description

The description of the FunctionalTest.

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

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

Events