Add example analysis_test with configuration #1343
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP
exploring analysis tests with different configuration properties set
arrange.bzl produces a small set of targets
[main_target_library] --dep--> [dependency_a] --dep--> [dependency_a_trans_dep_jar]
experimental_prune_transitive_deps_tests.bzl
has two tests, one test enables experimental_prune_transitive_deps the other dosnt.
basic assertions around the KotlinCompile action to check --classpath, --direct_dependencies and inputs
[dependency_a_trans_dep_jar] should be dropped when the experimental flag is enabled
for these tests to work I think all flags need to be public, ie not the ones in the internal/kotlin/kt_configure_toolchains function
These tests dont run perfectly yet but i thought i would share what i have so far, i have an issue with checking absolute paths atm
im guessing darwin_arm64-fastbuild-ST-d9dfb3145612 is something to do with the "reconfiguration" when the analysis test runs with the new flags