Compile Test
data class CompileTest
Content copied to clipboard
The compile test runner.
Compiles all sourcesFiles with the given processors (Annotation processors). Then checks all expectations.
When there are any errors an IllegalStateException is raised with text containing detailed information about all failed expectations.
See also
Types
Builder
Link copied to clipboard
Expectation
Link copied to clipboard
interface Expectation
Content copied to clipboard
Defines an expectation to be checked by a CompileTest
ExpectFileCount
Link copied to clipboard
ExpectFileToMatch
Link copied to clipboard
data class ExpectFileToMatch(file: String, expectedContent: String) : CompileTest.Expectation
Content copied to clipboard
Checks if the result has a generated file which matches the expectedContentThe content are not compared for pure equality.
ExpectFileToNotExist
Link copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
copy
Link copied to clipboard
fun copy(processors: List<Processor>, sourcesFiles: List<SourceFile>, expectations: List<CompileTest.Expectation>): CompileTest
Content copied to clipboard
Properties
expectations
Link copied to clipboard
processors
Link copied to clipboard
sourcesFiles
Link copied to clipboard