diff --git a/components/generator/common/src/main/kotlin/io/github/composegears/valkyrie/generator/ext/Formatter.kt b/components/generator/common/src/main/kotlin/io/github/composegears/valkyrie/generator/ext/FloatFormatter.kt similarity index 100% rename from components/generator/common/src/main/kotlin/io/github/composegears/valkyrie/generator/ext/Formatter.kt rename to components/generator/common/src/main/kotlin/io/github/composegears/valkyrie/generator/ext/FloatFormatter.kt diff --git a/components/generator/common/src/test/kotlin/io/github/composegears/valkyrie/generator/ext/FormatterTest.kt b/components/generator/common/src/test/kotlin/io/github/composegears/valkyrie/generator/ext/FloatFormatterTest.kt similarity index 95% rename from components/generator/common/src/test/kotlin/io/github/composegears/valkyrie/generator/ext/FormatterTest.kt rename to components/generator/common/src/test/kotlin/io/github/composegears/valkyrie/generator/ext/FloatFormatterTest.kt index 67a73822..ed3315e5 100644 --- a/components/generator/common/src/test/kotlin/io/github/composegears/valkyrie/generator/ext/FormatterTest.kt +++ b/components/generator/common/src/test/kotlin/io/github/composegears/valkyrie/generator/ext/FloatFormatterTest.kt @@ -4,7 +4,7 @@ import assertk.assertThat import assertk.assertions.isEqualTo import org.junit.jupiter.api.Test -class FormatterTest { +class FloatFormatterTest { @Test fun `formatValue for floats`() { diff --git a/components/generator/iconpack/build.gradle.kts b/components/generator/iconpack/build.gradle.kts index bbbc790c..beabe02d 100644 --- a/components/generator/iconpack/build.gradle.kts +++ b/components/generator/iconpack/build.gradle.kts @@ -2,6 +2,14 @@ plugins { alias(libs.plugins.kotlin.jvm) } +sourceSets { + test { + resources { + srcDir("$rootDir/components/sharedTestResources") + } + } +} + dependencies { implementation(projects.components.extensions) implementation(projects.components.generator.common) diff --git a/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IcoPackWithIndentTest.kt b/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IcoPackWithIndentTest.kt index dada31f1..272cc4de 100644 --- a/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IcoPackWithIndentTest.kt +++ b/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IcoPackWithIndentTest.kt @@ -22,7 +22,7 @@ class IcoPackWithIndentTest { @Test fun `generate nested indent 1 packs`() { val result = IconPackGenerator.create(config = createConfig(indentSize = 1)) - val expected = getResourceText("kt/IconPack.nested.indent1.kt") + val expected = getResourceText("iconpack/IconPack.nested.indent1.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") @@ -31,7 +31,7 @@ class IcoPackWithIndentTest { @Test fun `generate nested indent 2 packs`() { val result = IconPackGenerator.create(config = createConfig(indentSize = 2)) - val expected = getResourceText("kt/IconPack.nested.indent2.kt") + val expected = getResourceText("iconpack/IconPack.nested.indent2.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") @@ -40,7 +40,7 @@ class IcoPackWithIndentTest { @Test fun `generate nested indent 3 packs`() { val result = IconPackGenerator.create(config = createConfig(indentSize = 3)) - val expected = getResourceText("kt/IconPack.nested.indent3.kt") + val expected = getResourceText("iconpack/IconPack.nested.indent3.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") @@ -49,7 +49,7 @@ class IcoPackWithIndentTest { @Test fun `generate nested indent 6 packs`() { val result = IconPackGenerator.create(config = createConfig(indentSize = 6)) - val expected = getResourceText("kt/IconPack.nested.indent6.kt") + val expected = getResourceText("iconpack/IconPack.nested.indent6.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") diff --git a/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IconPackGeneratorTest.kt b/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IconPackGeneratorTest.kt index 9b43c1ee..7751a78b 100644 --- a/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IconPackGeneratorTest.kt +++ b/components/generator/iconpack/src/test/kotlin/io/github/composegears/valkyrie/generator/iconpack/IconPackGeneratorTest.kt @@ -23,7 +23,7 @@ class IconPackGeneratorTest { fun `generate icon pack`() { val result = IconPackGenerator.create(config = createConfig()) - val expected = getResourceText("kt/IconPack.kt") + val expected = getResourceText("iconpack/IconPack.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") @@ -35,7 +35,7 @@ class IconPackGeneratorTest { config = createConfig(useExplicitMode = true), ) - val expected = getResourceText("kt/IconPack.explicit.kt") + val expected = getResourceText("iconpack/IconPack.explicit.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") @@ -47,7 +47,7 @@ class IconPackGeneratorTest { config = createConfig(nestedPacks = listOf("Filled", "Colored")), ) - val expected = getResourceText("kt/IconPack.nested.kt") + val expected = getResourceText("iconpack/IconPack.nested.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") @@ -62,7 +62,7 @@ class IconPackGeneratorTest { ), ) - val expected = getResourceText("kt/IconPack.nested.explicit.kt") + val expected = getResourceText("iconpack/IconPack.nested.explicit.kt") assertThat(result.content).isEqualTo(expected) assertThat(result.name).isEqualTo("ValkyrieIcons") diff --git a/components/generator/imagevector/build.gradle.kts b/components/generator/imagevector/build.gradle.kts index 9fb661f9..db3877b0 100644 --- a/components/generator/imagevector/build.gradle.kts +++ b/components/generator/imagevector/build.gradle.kts @@ -2,6 +2,14 @@ plugins { alias(libs.plugins.kotlin.jvm) } +sourceSets { + test { + resources { + srcDir("$rootDir/components/sharedTestResources") + } + } +} + dependencies { implementation(projects.components.extensions) implementation(projects.components.generator.common) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/CustomPackageTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/CustomPackageTest.kt index d77e2f0f..da510525 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/CustomPackageTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/CustomPackageTest.kt @@ -15,7 +15,7 @@ class CustomPackageTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `flat package without icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_flat_package.xml") + val icon = getResourcePath("imagevector/xml/ic_flat_package.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -27,8 +27,8 @@ class CustomPackageTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/FlatPackage.kt", - pathToLazyProperty = "kt/lazy/FlatPackage.kt", + pathToBackingProperty = "imagevector/kt/backing/FlatPackage.kt", + pathToLazyProperty = "imagevector/kt/lazy/FlatPackage.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -37,7 +37,7 @@ class CustomPackageTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `flat package with icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_flat_package.xml") + val icon = getResourcePath("imagevector/xml/ic_flat_package.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -50,8 +50,8 @@ class CustomPackageTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/FlatPackage.pack.kt", - pathToLazyProperty = "kt/lazy/FlatPackage.pack.kt", + pathToBackingProperty = "imagevector/kt/backing/FlatPackage.pack.kt", + pathToLazyProperty = "imagevector/kt/lazy/FlatPackage.pack.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -60,7 +60,7 @@ class CustomPackageTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `flat package with nested icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_flat_package.xml") + val icon = getResourcePath("imagevector/xml/ic_flat_package.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -74,8 +74,8 @@ class CustomPackageTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/FlatPackage.pack.nested.kt", - pathToLazyProperty = "kt/lazy/FlatPackage.pack.nested.kt", + pathToBackingProperty = "imagevector/kt/backing/FlatPackage.pack.nested.kt", + pathToLazyProperty = "imagevector/kt/lazy/FlatPackage.pack.nested.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -84,7 +84,7 @@ class CustomPackageTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `different icon pack package`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -100,8 +100,8 @@ class CustomPackageTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.pack.package.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.pack.package.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.pack.package.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.pack.package.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ExplicitModeTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ExplicitModeTest.kt index 61d3ceaa..64cd60ee 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ExplicitModeTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ExplicitModeTest.kt @@ -15,7 +15,7 @@ class ExplicitModeTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation with explicit mode`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -27,8 +27,8 @@ class ExplicitModeTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.explicit.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.explicit.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.explicit.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.explicit.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithIndentTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithIndentTest.kt index eefe302a..20b870cc 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithIndentTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithIndentTest.kt @@ -15,7 +15,7 @@ class ImageVectorWithIndentTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation without icon pack with indent 1`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -27,8 +27,8 @@ class ImageVectorWithIndentTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.indent1.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.indent1.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.indent1.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.indent1.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -37,7 +37,7 @@ class ImageVectorWithIndentTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation without icon pack with indent 2`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -49,8 +49,8 @@ class ImageVectorWithIndentTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.indent2.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.indent2.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.indent2.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.indent2.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -59,7 +59,7 @@ class ImageVectorWithIndentTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation without icon pack with indent 3`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -71,8 +71,8 @@ class ImageVectorWithIndentTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.indent3.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.indent3.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.indent3.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.indent3.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -81,7 +81,7 @@ class ImageVectorWithIndentTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation without icon pack with indent 6`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -93,8 +93,8 @@ class ImageVectorWithIndentTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.indent6.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.indent6.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.indent6.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.indent6.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithPreviewTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithPreviewTest.kt index 7501d38a..3457c89d 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithPreviewTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/ImageVectorWithPreviewTest.kt @@ -15,7 +15,7 @@ class ImageVectorWithPreviewTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `preview generation without icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -27,8 +27,8 @@ class ImageVectorWithPreviewTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.preview.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.preview.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.preview.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.preview.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -37,7 +37,7 @@ class ImageVectorWithPreviewTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `preview generation with icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -50,8 +50,8 @@ class ImageVectorWithPreviewTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.pack.preview.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.pack.preview.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.pack.preview.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.pack.preview.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -60,7 +60,7 @@ class ImageVectorWithPreviewTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `preview generation with nested pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -74,8 +74,8 @@ class ImageVectorWithPreviewTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.pack.nested.preview.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.pack.nested.preview.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.pack.nested.preview.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.pack.nested.preview.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/SvgWithGradientToImageVectorTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/SvgWithGradientToImageVectorTest.kt index 3af4bacb..2c9b7f32 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/SvgWithGradientToImageVectorTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/SvgWithGradientToImageVectorTest.kt @@ -15,7 +15,7 @@ class SvgWithGradientToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `svg linear gradient parsing`(outputFormat: OutputFormat) { - val icon = getResourcePath("svg/ic_linear_gradient.svg") + val icon = getResourcePath("imagevector/svg/ic_linear_gradient.svg") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -24,8 +24,8 @@ class SvgWithGradientToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/LinearGradient.kt", - pathToLazyProperty = "kt/lazy/LinearGradient.kt", + pathToBackingProperty = "imagevector/kt/backing/LinearGradient.kt", + pathToLazyProperty = "imagevector/kt/lazy/LinearGradient.kt", ) assertThat(parserOutput.iconType).isEqualTo(SVG) assertThat(output).isEqualTo(expected) @@ -34,7 +34,7 @@ class SvgWithGradientToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `svg radial gradient parsing`(outputFormat: OutputFormat) { - val icon = getResourcePath("svg/ic_radial_gradient.svg") + val icon = getResourcePath("imagevector/svg/ic_radial_gradient.svg") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -43,8 +43,8 @@ class SvgWithGradientToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/RadialGradient.kt", - pathToLazyProperty = "kt/lazy/RadialGradient.kt", + pathToBackingProperty = "imagevector/kt/backing/RadialGradient.kt", + pathToLazyProperty = "imagevector/kt/lazy/RadialGradient.kt", ) assertThat(parserOutput.iconType).isEqualTo(SVG) assertThat(output).isEqualTo(expected) @@ -53,7 +53,7 @@ class SvgWithGradientToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `svg linear gradient with stroke parsing`(outputFormat: OutputFormat) { - val icon = getResourcePath("svg/ic_linear_gradient_with_stroke.svg") + val icon = getResourcePath("imagevector/svg/ic_linear_gradient_with_stroke.svg") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -62,8 +62,8 @@ class SvgWithGradientToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/LinearGradientWithStroke.kt", - pathToLazyProperty = "kt/lazy/LinearGradientWithStroke.kt", + pathToBackingProperty = "imagevector/kt/backing/LinearGradientWithStroke.kt", + pathToLazyProperty = "imagevector/kt/lazy/LinearGradientWithStroke.kt", ) assertThat(parserOutput.iconType).isEqualTo(SVG) assertThat(output).isEqualTo(expected) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/TrailingCommaTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/TrailingCommaTest.kt index 5c32319a..15dbdc82 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/TrailingCommaTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/TrailingCommaTest.kt @@ -15,7 +15,7 @@ class TrailingCommaTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with path and solid color`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_fill_color_stroke.xml") + val icon = getResourcePath("imagevector/xml/ic_fill_color_stroke.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -28,8 +28,8 @@ class TrailingCommaTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/FillColorStroke.trailing.kt", - pathToLazyProperty = "kt/lazy/FillColorStroke.trailing.kt", + pathToBackingProperty = "imagevector/kt/backing/FillColorStroke.trailing.kt", + pathToLazyProperty = "imagevector/kt/lazy/FillColorStroke.trailing.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) diff --git a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/XmlToImageVectorTest.kt b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/XmlToImageVectorTest.kt index dc033ada..820e76fd 100644 --- a/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/XmlToImageVectorTest.kt +++ b/components/generator/imagevector/src/test/kotlin/io/github/composegears/valkyrie/generator/imagevector/XmlToImageVectorTest.kt @@ -15,7 +15,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation without icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -24,8 +24,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -34,7 +34,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `generation with nested icon pack`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -47,8 +47,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.pack.nested.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.pack.nested.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.pack.nested.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.pack.nested.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -57,7 +57,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `empty path xml`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_without_path.xml") + val icon = getResourcePath("imagevector/xml/ic_without_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -69,8 +69,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/WithoutPath.pack.kt", - pathToLazyProperty = "kt/lazy/WithoutPath.pack.kt", + pathToBackingProperty = "imagevector/kt/backing/WithoutPath.pack.kt", + pathToLazyProperty = "imagevector/kt/lazy/WithoutPath.pack.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -79,7 +79,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon only with path`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_only_path.xml") + val icon = getResourcePath("imagevector/xml/ic_only_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -91,8 +91,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/OnlyPath.kt", - pathToLazyProperty = "kt/lazy/OnlyPath.kt", + pathToBackingProperty = "imagevector/kt/backing/OnlyPath.kt", + pathToLazyProperty = "imagevector/kt/lazy/OnlyPath.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -101,7 +101,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with path and solid color`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_fill_color_stroke.xml") + val icon = getResourcePath("imagevector/xml/ic_fill_color_stroke.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -113,8 +113,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/FillColorStroke.kt", - pathToLazyProperty = "kt/lazy/FillColorStroke.kt", + pathToBackingProperty = "imagevector/kt/backing/FillColorStroke.kt", + pathToLazyProperty = "imagevector/kt/lazy/FillColorStroke.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -123,7 +123,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with all path params`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_all_path_params.xml") + val icon = getResourcePath("imagevector/xml/ic_all_path_params.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -135,8 +135,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/AllPathParams.kt", - pathToLazyProperty = "kt/lazy/AllPathParams.kt", + pathToBackingProperty = "imagevector/kt/backing/AllPathParams.kt", + pathToLazyProperty = "imagevector/kt/lazy/AllPathParams.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -145,7 +145,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with all group params`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_all_group_params.xml") + val icon = getResourcePath("imagevector/xml/ic_all_group_params.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -157,8 +157,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/AllGroupParams.kt", - pathToLazyProperty = "kt/lazy/AllGroupParams.kt", + pathToBackingProperty = "imagevector/kt/backing/AllGroupParams.kt", + pathToLazyProperty = "imagevector/kt/lazy/AllGroupParams.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -167,7 +167,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with several path`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_several_path.xml") + val icon = getResourcePath("imagevector/xml/ic_several_path.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -179,8 +179,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/SeveralPath.kt", - pathToLazyProperty = "kt/lazy/SeveralPath.kt", + pathToBackingProperty = "imagevector/kt/backing/SeveralPath.kt", + pathToLazyProperty = "imagevector/kt/lazy/SeveralPath.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -189,7 +189,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with transparent fill color`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/ic_transparent_fill_color.xml") + val icon = getResourcePath("imagevector/xml/ic_transparent_fill_color.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -201,8 +201,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/TransparentFillColor.kt", - pathToLazyProperty = "kt/lazy/TransparentFillColor.kt", + pathToBackingProperty = "imagevector/kt/backing/TransparentFillColor.kt", + pathToLazyProperty = "imagevector/kt/lazy/TransparentFillColor.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -211,7 +211,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with named arguments`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/icon_with_named_args.xml") + val icon = getResourcePath("imagevector/xml/icon_with_named_args.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -223,8 +223,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/IconWithNamedArgs.kt", - pathToLazyProperty = "kt/lazy/IconWithNamedArgs.kt", + pathToBackingProperty = "imagevector/kt/backing/IconWithNamedArgs.kt", + pathToLazyProperty = "imagevector/kt/lazy/IconWithNamedArgs.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) @@ -233,7 +233,7 @@ class XmlToImageVectorTest { @ParameterizedTest @EnumSource(value = OutputFormat::class) fun `icon with shorthand color`(outputFormat: OutputFormat) { - val icon = getResourcePath("xml/icon_with_shorthand_color.xml") + val icon = getResourcePath("imagevector/xml/icon_with_shorthand_color.xml") val parserOutput = SvgXmlParser.toIrImageVector(icon) val output = ImageVectorGenerator.convert( vector = parserOutput.irImageVector, @@ -245,8 +245,8 @@ class XmlToImageVectorTest { ).content val expected = outputFormat.toResourceText( - pathToBackingProperty = "kt/backing/IconWithShorthandColor.kt", - pathToLazyProperty = "kt/lazy/IconWithShorthandColor.kt", + pathToBackingProperty = "imagevector/kt/backing/IconWithShorthandColor.kt", + pathToLazyProperty = "imagevector/kt/lazy/IconWithShorthandColor.kt", ) assertThat(parserOutput.iconType).isEqualTo(XML) assertThat(output).isEqualTo(expected) diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.explicit.kt b/components/sharedTestResources/iconpack/IconPack.explicit.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.explicit.kt rename to components/sharedTestResources/iconpack/IconPack.explicit.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.kt b/components/sharedTestResources/iconpack/IconPack.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.kt rename to components/sharedTestResources/iconpack/IconPack.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.nested.explicit.kt b/components/sharedTestResources/iconpack/IconPack.nested.explicit.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.nested.explicit.kt rename to components/sharedTestResources/iconpack/IconPack.nested.explicit.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent1.kt b/components/sharedTestResources/iconpack/IconPack.nested.indent1.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent1.kt rename to components/sharedTestResources/iconpack/IconPack.nested.indent1.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent2.kt b/components/sharedTestResources/iconpack/IconPack.nested.indent2.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent2.kt rename to components/sharedTestResources/iconpack/IconPack.nested.indent2.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent3.kt b/components/sharedTestResources/iconpack/IconPack.nested.indent3.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent3.kt rename to components/sharedTestResources/iconpack/IconPack.nested.indent3.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent6.kt b/components/sharedTestResources/iconpack/IconPack.nested.indent6.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.nested.indent6.kt rename to components/sharedTestResources/iconpack/IconPack.nested.indent6.kt diff --git a/components/generator/iconpack/src/test/resources/kt/IconPack.nested.kt b/components/sharedTestResources/iconpack/IconPack.nested.kt similarity index 100% rename from components/generator/iconpack/src/test/resources/kt/IconPack.nested.kt rename to components/sharedTestResources/iconpack/IconPack.nested.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/AllGroupParams.kt b/components/sharedTestResources/imagevector/kt/backing/AllGroupParams.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/AllGroupParams.kt rename to components/sharedTestResources/imagevector/kt/backing/AllGroupParams.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/AllPathParams.kt b/components/sharedTestResources/imagevector/kt/backing/AllPathParams.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/AllPathParams.kt rename to components/sharedTestResources/imagevector/kt/backing/AllPathParams.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/FillColorStroke.kt b/components/sharedTestResources/imagevector/kt/backing/FillColorStroke.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/FillColorStroke.kt rename to components/sharedTestResources/imagevector/kt/backing/FillColorStroke.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/FillColorStroke.trailing.kt b/components/sharedTestResources/imagevector/kt/backing/FillColorStroke.trailing.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/FillColorStroke.trailing.kt rename to components/sharedTestResources/imagevector/kt/backing/FillColorStroke.trailing.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/FlatPackage.kt b/components/sharedTestResources/imagevector/kt/backing/FlatPackage.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/FlatPackage.kt rename to components/sharedTestResources/imagevector/kt/backing/FlatPackage.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/FlatPackage.pack.kt b/components/sharedTestResources/imagevector/kt/backing/FlatPackage.pack.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/FlatPackage.pack.kt rename to components/sharedTestResources/imagevector/kt/backing/FlatPackage.pack.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/FlatPackage.pack.nested.kt b/components/sharedTestResources/imagevector/kt/backing/FlatPackage.pack.nested.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/FlatPackage.pack.nested.kt rename to components/sharedTestResources/imagevector/kt/backing/FlatPackage.pack.nested.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/IconWithNamedArgs.kt b/components/sharedTestResources/imagevector/kt/backing/IconWithNamedArgs.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/IconWithNamedArgs.kt rename to components/sharedTestResources/imagevector/kt/backing/IconWithNamedArgs.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/IconWithShorthandColor.kt b/components/sharedTestResources/imagevector/kt/backing/IconWithShorthandColor.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/IconWithShorthandColor.kt rename to components/sharedTestResources/imagevector/kt/backing/IconWithShorthandColor.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/LinearGradient.kt b/components/sharedTestResources/imagevector/kt/backing/LinearGradient.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/LinearGradient.kt rename to components/sharedTestResources/imagevector/kt/backing/LinearGradient.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/LinearGradientWithStroke.kt b/components/sharedTestResources/imagevector/kt/backing/LinearGradientWithStroke.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/LinearGradientWithStroke.kt rename to components/sharedTestResources/imagevector/kt/backing/LinearGradientWithStroke.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/OnlyPath.kt b/components/sharedTestResources/imagevector/kt/backing/OnlyPath.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/OnlyPath.kt rename to components/sharedTestResources/imagevector/kt/backing/OnlyPath.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/RadialGradient.kt b/components/sharedTestResources/imagevector/kt/backing/RadialGradient.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/RadialGradient.kt rename to components/sharedTestResources/imagevector/kt/backing/RadialGradient.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/SeveralPath.kt b/components/sharedTestResources/imagevector/kt/backing/SeveralPath.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/SeveralPath.kt rename to components/sharedTestResources/imagevector/kt/backing/SeveralPath.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/TransparentFillColor.kt b/components/sharedTestResources/imagevector/kt/backing/TransparentFillColor.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/TransparentFillColor.kt rename to components/sharedTestResources/imagevector/kt/backing/TransparentFillColor.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.explicit.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.explicit.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.explicit.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.explicit.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent1.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent1.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent1.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent1.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent2.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent2.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent2.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent2.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent3.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent3.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent3.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent3.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent6.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent6.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.indent6.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.indent6.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.nested.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.nested.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.nested.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.nested.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.nested.preview.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.nested.preview.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.nested.preview.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.nested.preview.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.package.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.package.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.package.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.package.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.preview.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.preview.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.pack.preview.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.pack.preview.kt diff --git a/components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.preview.kt b/components/sharedTestResources/imagevector/kt/backing/WithoutPath.preview.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/backing/WithoutPath.preview.kt rename to components/sharedTestResources/imagevector/kt/backing/WithoutPath.preview.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/AllGroupParams.kt b/components/sharedTestResources/imagevector/kt/lazy/AllGroupParams.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/AllGroupParams.kt rename to components/sharedTestResources/imagevector/kt/lazy/AllGroupParams.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/AllPathParams.kt b/components/sharedTestResources/imagevector/kt/lazy/AllPathParams.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/AllPathParams.kt rename to components/sharedTestResources/imagevector/kt/lazy/AllPathParams.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/FillColorStroke.kt b/components/sharedTestResources/imagevector/kt/lazy/FillColorStroke.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/FillColorStroke.kt rename to components/sharedTestResources/imagevector/kt/lazy/FillColorStroke.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/FillColorStroke.trailing.kt b/components/sharedTestResources/imagevector/kt/lazy/FillColorStroke.trailing.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/FillColorStroke.trailing.kt rename to components/sharedTestResources/imagevector/kt/lazy/FillColorStroke.trailing.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/FlatPackage.kt b/components/sharedTestResources/imagevector/kt/lazy/FlatPackage.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/FlatPackage.kt rename to components/sharedTestResources/imagevector/kt/lazy/FlatPackage.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/FlatPackage.pack.kt b/components/sharedTestResources/imagevector/kt/lazy/FlatPackage.pack.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/FlatPackage.pack.kt rename to components/sharedTestResources/imagevector/kt/lazy/FlatPackage.pack.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/FlatPackage.pack.nested.kt b/components/sharedTestResources/imagevector/kt/lazy/FlatPackage.pack.nested.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/FlatPackage.pack.nested.kt rename to components/sharedTestResources/imagevector/kt/lazy/FlatPackage.pack.nested.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/IconWithNamedArgs.kt b/components/sharedTestResources/imagevector/kt/lazy/IconWithNamedArgs.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/IconWithNamedArgs.kt rename to components/sharedTestResources/imagevector/kt/lazy/IconWithNamedArgs.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/IconWithShorthandColor.kt b/components/sharedTestResources/imagevector/kt/lazy/IconWithShorthandColor.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/IconWithShorthandColor.kt rename to components/sharedTestResources/imagevector/kt/lazy/IconWithShorthandColor.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/LinearGradient.kt b/components/sharedTestResources/imagevector/kt/lazy/LinearGradient.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/LinearGradient.kt rename to components/sharedTestResources/imagevector/kt/lazy/LinearGradient.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/LinearGradientWithStroke.kt b/components/sharedTestResources/imagevector/kt/lazy/LinearGradientWithStroke.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/LinearGradientWithStroke.kt rename to components/sharedTestResources/imagevector/kt/lazy/LinearGradientWithStroke.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/OnlyPath.kt b/components/sharedTestResources/imagevector/kt/lazy/OnlyPath.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/OnlyPath.kt rename to components/sharedTestResources/imagevector/kt/lazy/OnlyPath.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/RadialGradient.kt b/components/sharedTestResources/imagevector/kt/lazy/RadialGradient.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/RadialGradient.kt rename to components/sharedTestResources/imagevector/kt/lazy/RadialGradient.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/SeveralPath.kt b/components/sharedTestResources/imagevector/kt/lazy/SeveralPath.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/SeveralPath.kt rename to components/sharedTestResources/imagevector/kt/lazy/SeveralPath.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/TransparentFillColor.kt b/components/sharedTestResources/imagevector/kt/lazy/TransparentFillColor.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/TransparentFillColor.kt rename to components/sharedTestResources/imagevector/kt/lazy/TransparentFillColor.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.explicit.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.explicit.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.explicit.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.explicit.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent1.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent1.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent1.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent1.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent2.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent2.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent2.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent2.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent3.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent3.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent3.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent3.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent6.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent6.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.indent6.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.indent6.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.nested.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.nested.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.nested.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.nested.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.nested.preview.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.nested.preview.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.nested.preview.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.nested.preview.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.package.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.package.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.package.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.package.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.preview.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.preview.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.pack.preview.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.pack.preview.kt diff --git a/components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.preview.kt b/components/sharedTestResources/imagevector/kt/lazy/WithoutPath.preview.kt similarity index 100% rename from components/generator/imagevector/src/test/resources/kt/lazy/WithoutPath.preview.kt rename to components/sharedTestResources/imagevector/kt/lazy/WithoutPath.preview.kt diff --git a/components/generator/imagevector/src/test/resources/svg/ic_linear_gradient.svg b/components/sharedTestResources/imagevector/svg/ic_linear_gradient.svg similarity index 100% rename from components/generator/imagevector/src/test/resources/svg/ic_linear_gradient.svg rename to components/sharedTestResources/imagevector/svg/ic_linear_gradient.svg diff --git a/components/generator/imagevector/src/test/resources/svg/ic_linear_gradient_with_stroke.svg b/components/sharedTestResources/imagevector/svg/ic_linear_gradient_with_stroke.svg similarity index 100% rename from components/generator/imagevector/src/test/resources/svg/ic_linear_gradient_with_stroke.svg rename to components/sharedTestResources/imagevector/svg/ic_linear_gradient_with_stroke.svg diff --git a/components/generator/imagevector/src/test/resources/svg/ic_radial_gradient.svg b/components/sharedTestResources/imagevector/svg/ic_radial_gradient.svg similarity index 100% rename from components/generator/imagevector/src/test/resources/svg/ic_radial_gradient.svg rename to components/sharedTestResources/imagevector/svg/ic_radial_gradient.svg diff --git a/components/generator/imagevector/src/test/resources/xml/ic_all_group_params.xml b/components/sharedTestResources/imagevector/xml/ic_all_group_params.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_all_group_params.xml rename to components/sharedTestResources/imagevector/xml/ic_all_group_params.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_all_path_params.xml b/components/sharedTestResources/imagevector/xml/ic_all_path_params.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_all_path_params.xml rename to components/sharedTestResources/imagevector/xml/ic_all_path_params.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_fill_color_stroke.xml b/components/sharedTestResources/imagevector/xml/ic_fill_color_stroke.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_fill_color_stroke.xml rename to components/sharedTestResources/imagevector/xml/ic_fill_color_stroke.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_flat_package.xml b/components/sharedTestResources/imagevector/xml/ic_flat_package.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_flat_package.xml rename to components/sharedTestResources/imagevector/xml/ic_flat_package.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_only_path.xml b/components/sharedTestResources/imagevector/xml/ic_only_path.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_only_path.xml rename to components/sharedTestResources/imagevector/xml/ic_only_path.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_several_path.xml b/components/sharedTestResources/imagevector/xml/ic_several_path.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_several_path.xml rename to components/sharedTestResources/imagevector/xml/ic_several_path.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_transparent_fill_color.xml b/components/sharedTestResources/imagevector/xml/ic_transparent_fill_color.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_transparent_fill_color.xml rename to components/sharedTestResources/imagevector/xml/ic_transparent_fill_color.xml diff --git a/components/generator/imagevector/src/test/resources/xml/ic_without_path.xml b/components/sharedTestResources/imagevector/xml/ic_without_path.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/ic_without_path.xml rename to components/sharedTestResources/imagevector/xml/ic_without_path.xml diff --git a/components/generator/imagevector/src/test/resources/xml/icon_with_named_args.xml b/components/sharedTestResources/imagevector/xml/icon_with_named_args.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/icon_with_named_args.xml rename to components/sharedTestResources/imagevector/xml/icon_with_named_args.xml diff --git a/components/generator/imagevector/src/test/resources/xml/icon_with_shorthand_color.xml b/components/sharedTestResources/imagevector/xml/icon_with_shorthand_color.xml similarity index 100% rename from components/generator/imagevector/src/test/resources/xml/icon_with_shorthand_color.xml rename to components/sharedTestResources/imagevector/xml/icon_with_shorthand_color.xml