You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address Issue dropbox#258: Configuration predicate to control dependency graph creation
Adds a new configuration option to allow the consumer to provision of a
`Predicate<Configuration>` instance to customize what `Configuration` instances
should be considered when building the dependency graph.
-`includeUncommitted`: If uncommitted files should be considered affected
125
130
-`top`: The top of the git log to use. Must be used in combination with configuration `includeUncommitted = false`
126
131
-`customTasks`: set of [CustomTask](https://github.com/dropbox/AffectedModuleDetector/blob/main/affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfiguration.kt)
132
+
-`configurationPredicate`: A predicate to filter configurations that should be considered for the dependency graph. By default, all configurations are considered.
127
133
128
134
By default, the Detector will look for `assembleAndroidDebugTest`, `connectedAndroidDebugTest`, and `testDebug`. Modules can specify a configuration block to specify which variant tests to run:
Copy file name to clipboardExpand all lines: affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfigurationTest.kt
Copy file name to clipboardExpand all lines: affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorImplTest.kt
Copy file name to clipboardExpand all lines: affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPluginTest.kt
@@ -102,7 +102,7 @@ class AffectedModuleDetectorPluginTest {
102
102
@Test
103
103
fun`GIVEN affected module detector plugin WHEN register_custom_task is called AND AffectedModuleConfiguration customTask is not empty THEN task is added`() {
104
104
// GIVEN
105
-
val configuration =AffectedModuleConfiguration()
105
+
val configuration =AffectedModuleConfiguration(MockObjectFactory())
@@ -122,7 +122,7 @@ class AffectedModuleDetectorPluginTest {
122
122
@Test
123
123
fun`GIVEN affected module detector plugin WHEN registerCustomTasks is called AND AffectedModuleConfiguration customTask is empty THEN task isn't added`() {
124
124
// GIVEN
125
-
val configuration =AffectedModuleConfiguration()
125
+
val configuration =AffectedModuleConfiguration(MockObjectFactory())
0 commit comments