ProjectTestEnvironment
open class ProjectTestEnvironment(val projectCache: ProjectCache, names: List<String>, testLocation: TestLocation = TestLocation.get()) : TestEnvironment, ProjectCollector(source)
A specialized TestEnvironment for project-related tests. Provides utility functions for creating files and dependencies.
Constructors
Link copied to clipboard
constructor(projectCache: ProjectCache, names: List<String>, testLocation: TestLocation = TestLocation.get())
Properties
Functions
Link copied to clipboard
fun McProject.addDependency(configurationName: ConfigurationName, project: McProject, asTestFixture: Boolean = false)
Adds a project dependency to the receiver McProject.
Link copied to clipboard
Link copied to clipboard
open fun androidApplication(path: String, androidPackage: String, config: McProjectBuilder<AndroidApplicationPluginBuilder>.() -> Unit): McProject
Link copied to clipboard
open fun androidDynamicFeature(path: String, androidPackage: String, config: McProjectBuilder<AndroidDynamicFeaturePluginBuilder>.() -> Unit): McProject
Link copied to clipboard
open fun androidLibrary(path: String, androidPackage: String, config: McProjectBuilder<AndroidLibraryPluginBuilder>.() -> Unit): McProject
Link copied to clipboard
open fun androidTest(path: String, androidPackage: String, config: McProjectBuilder<AndroidTestPluginBuilder>.() -> Unit): McProject
Link copied to clipboard
Link copied to clipboard
fun McProject.createJavaFile(content: String, sourceSetName: SourceSetName = SourceSetName.MAIN): JavaFile
fun ProjectTestEnvironment.createJavaFile(content: String, project: McProject = simpleProject(), sourceSetName: SourceSetName = SourceSetName.MAIN, jvmTarget: JvmTarget = JvmTarget.JVM_11): JavaFile
Link copied to clipboard
fun McProject.createKotlinFile(content: String, sourceSetName: SourceSetName = SourceSetName.MAIN): KotlinFile
Creates a KotlinFile and adds it to the receiver McProject.
fun ProjectTestEnvironment.createKotlinFile(content: String, project: McProject = simpleProject(), sourceSetName: SourceSetName = SourceSetName.MAIN, jvmTarget: JvmTarget = JvmTarget.JVM_11): KotlinFile
Creates a KotlinFile and adds it to the specified McProject.
Link copied to clipboard
open suspend fun McProject.editSimple(config: McProjectBuilder<PlatformPluginBuilder<PlatformPlugin>>.() -> Unit): McProject
Link copied to clipboard
open fun javaProject(path: String, config: McProjectBuilder<JavaLibraryPluginBuilder>.() -> Unit): McProject
Link copied to clipboard
open fun kotlinProject(path: String, config: McProjectBuilder<KotlinJvmPluginBuilder>.() -> Unit): McProject
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard