Package dev.nokee.companion
Class CppUnitTestExtensions
java.lang.Object
dev.nokee.companion.CppUnitTestExtensions
Represents missing properties that matches the tested component/binary for C++ test suites.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gradle.api.provider.Property<org.gradle.language.cpp.CppBinary>testedBinaryOf(org.gradle.nativeplatform.test.cpp.CppTestExecutable testBinary) Returns a property to configure the tested binary of the C++ test executable.static org.gradle.api.provider.Property<org.gradle.language.cpp.ProductionCppComponent>testedComponentOf(org.gradle.nativeplatform.test.cpp.CppTestSuite testSuite) Returns a property to configure the tested component of a C++ test suite.
-
Constructor Details
-
CppUnitTestExtensions
public CppUnitTestExtensions()
-
-
Method Details
-
testedComponentOf
public static org.gradle.api.provider.Property<org.gradle.language.cpp.ProductionCppComponent> testedComponentOf(org.gradle.nativeplatform.test.cpp.CppTestSuite testSuite) Returns a property to configure the tested component of a C++ test suite. Note that this property is distinct from Gradle's internal property of the same name. When using the native companion plugins, use this property instead!- Parameters:
testSuite- the test suite- Returns:
- the tested component property
-
testedBinaryOf
public static org.gradle.api.provider.Property<org.gradle.language.cpp.CppBinary> testedBinaryOf(org.gradle.nativeplatform.test.cpp.CppTestExecutable testBinary) Returns a property to configure the tested binary of the C++ test executable. When selecting a different tested binary, i.e. testing against release binary, use this property! The testable objects are derived from this property, hence doesn't require a full rewire.- Parameters:
testBinary- the test binary- Returns:
- the tested binary property
-