trial.discovery.testclass

A module containing the discovery logic for classes annodated with @Test

Public Imports

trial.attributes
public import trial.attributes;

Members

Classes

OtherTestSuite
class OtherTestSuite
Undocumented in source.
SomeTestSuite
class SomeTestSuite
Undocumented in source.
TestClassDiscovery
class TestClassDiscovery

The default test discovery looks for unit test sections and groups them by module

Functions

For
auto For()
Undocumented in source. Be warned that the author may not have intended to support it.
getSetup
auto getSetup()
getTestLocation
SourceLocation getTestLocation()
getTestName
string getTestName()
isSetupMember
bool isSetupMember()
isTestMember
bool isTestMember()
methodCaller
void methodCaller(U func)

Call a method using the right data provders

someCustomFunction
auto someCustomFunction()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

SetupEvent
struct SetupEvent

A structure that stores data about the setup events(methods)

ValueProvider
struct ValueProvider(string name, alias T)
Undocumented in source.

Templates

classMembers
template classMembers(string moduleName)
extractClasses
template extractClasses(string moduleName, members...)
extractValueProviders
template extractValueProviders(Elements...)
isClass
template isClass(string moduleName)
isRightParameter
template isRightParameter(string parameterName)
isSetupAttribute
template isSetupAttribute(alias Attribute)
isTestAttribute
template isTestAttribute(alias Attribute)
isValueProvider
template isValueProvider(alias Attribute)
setupAttributes
template setupAttributes(attributes...)
testAttributes
template testAttributes(attributes...)

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Szabo Bogdan