Package-level declarations
Types
Holds GradleDependencyVersion, KotlinDependencyVersion, AnvilDependencyVersion, and AgpDependencyVersion versions
Holds GradleDependencyVersion, KotlinDependencyVersion, and AgpDependencyVersion versions
Trait interface for McTestVersions
The versions of dependencies which are changed during parameterized tests.
Indicates that the annotated function/property should be ignored when walking a stack trace, such as in assertions or when trying to parse a test function's name.
Convenience interface for a test which uses KaseTestFactory in order to create DynamicTests for a JUnit5 test factory.
Functions
Replace Windows file separators with Unix ones, just for string comparison in tests
Removes various bits of noise and machine-specific variables from a console or report output. Cleans the provided string by applying various modifications such as normalising line separators, using relative paths, enforcing Unix file separators, and removing specific strings or patterns.
Retrieves the class from a StackTraceElement.
Retrieves the class from a StackFrame.
Returns the current class if it's a real class, otherwise walks up the hierarchy of enclosing/nesting classes until it finds a real one.
shorthand for the Kotest forAll
, but blocking and always returning Unit
Checks if an AnnotatedElement is annotated with SkipInStackTrace.
Checks if the StackTraceElement should be skipped based on the SkipInStackTrace annotation.
Checks if the StackFrame should be skipped based on the SkipInStackTrace annotation.
Validates that all methods in the list are either annotated with SkipInStackTrace or not. If only some methods are annotated, an exception will be thrown.
Returns the full tree of classes which implement a base sealed class/interface, including grandchildren, great-grandchildren, etc. This is different from KClass.sealedSubclasses in that the latter only returns the direct children.
Provides a sequence of instances of all non-abstract, non-sealed subclasses of the sealed class or interface that implement this KClass. The instances are created using the primary constructor of each subclass, with the provided arguments.
replace absolute paths with relative ones