Class CppUnitTestExtensions

java.lang.Object
dev.nokee.companion.CppUnitTestExtensions

public final class CppUnitTestExtensions extends Object
Represents missing properties that matches the tested component/binary for C++ test suites.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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