DocTest QML Type

Represents a doc test case. More...

Import Statement: import QDoc.Test 1.1
Since: QDoc.Test 0.9

Properties

Methods

Detailed Description

Introduction

A documentation test case, itself documented inline in DocTest.qml.

Property Documentation

active : bool

Whether the test is active.

See also name.


name : string

Name of the test.

DocTest {
    name: "test"
    // ...
}

Method Documentation

fail(message = "oops")

Fails the current test case, with the optional message.

This method was introduced in QDoc.Test 1.0.