-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing KotlinJvmTaskExecutorTest to the test suite #1089
Conversation
Add missing KotlinJvmTaskExecutorTest to the test suite
@@ -472,7 +472,7 @@ private val Directories.incrementalData | |||
* Create a new [JvmCompilationTask] with sources found in the generatedSources directory. This should be run after | |||
* annotation processors have been run. | |||
*/ | |||
internal fun JvmCompilationTask.expandWithGeneratedSources(): JvmCompilationTask = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internal will be visible to tests if you pass this target to the test target as an associate dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going to make it public to avoid using 4f0b728
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot about the kt_bootstrap
layer that these sources are wrapped in.
@@ -44,11 +44,11 @@ class KotlinJvmTaskExecutorTest { | |||
|
|||
assertTrue(expandedCompileTask.hasInputs()) | |||
assertNotNull(expandedCompileTask.inputs.javaSourcesList.find { path -> | |||
path.endsWith("a_test_1/generated_sources/AnotherGenClass.java") | |||
path.endsWith("generated_sources/AnotherGenClass.java") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This always generates not 1
but a random number a-test-115507972808607999568
. Removing the prefix here.
9279002
to
2ca3c96
Compare
2ca3c96
to
4f0b728
Compare
This reverts commit 4f0b728.
87a67af
to
acf0263
Compare
Add missing KotlinJvmTaskExecutorTest to the test suite