games/minesweeper: shared test scaffolding sweep
- Commit
6f578939f9bf17dbbd4ff04bdc7a39bc8184bcf8- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-01 22:48 UTC (4 days ago)
- Parents
9749c92
Remove class-level @Config(sdk = [34]) annotations that only duplicate the repo-wide sdk=34 default in build-logic/shared-test-resources/robolectric.properties, dropping the Config import where it becomes unused. Qualifier/shadow/application and non-34 configs are untouched; files dirty from other agents' in-flight work were skipped file-by-file. Verified: :games:minesweeper:testDevUnitTest green (BUILD SUCCESSFUL). Lint (:lint / :lintVitalRelease) was not run for this module in this sweep.
Diff
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperProgressCodecTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperProgressCodecTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperProgressCodecTest.ktindex 341e7c5495..3b087d3099 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperProgressCodecTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperProgressCodecTest.kt@@ -4,7 +4,6 @@ import android.app.Application import androidx.test.core.app.ApplicationProvider import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotNull@@ -12,7 +11,6 @@ import kotlin.test.assertNull import kotlin.test.assertTrue @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MinesweeperProgressCodecTest { private val app: Application get() = ApplicationProvider.getApplicationContext()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperStatsRepositoryTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperStatsRepositoryTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperStatsRepositoryTest.ktindex 6feaa8ab02..7cbb715400 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperStatsRepositoryTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/data/MinesweeperStatsRepositoryTest.kt@@ -8,11 +8,9 @@ import kotlin.test.assertEquals import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Per-variant stats: played/won/streak/best-time recording and the per-size aggregation. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MinesweeperStatsRepositoryTest { private val app: Context = ApplicationProvider.getApplicationContext()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelGameplayTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelGameplayTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelGameplayTest.ktindex 826ee23c3a..6bc795077f 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelGameplayTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelGameplayTest.kt@@ -20,11 +20,9 @@ import kotlin.test.assertNull import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Full games through the ViewModel: win, loss, give-up, timer and achievement back-fill. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MinesweeperViewModelGameplayTest { private val app: Application get() = ApplicationProvider.getApplicationContext()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelTest.ktindex 943a61c405..17675ff6e0 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/platform/MinesweeperViewModelTest.kt@@ -19,11 +19,9 @@ import kotlin.test.assertSame import kotlin.test.assertTrue import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Model maths (mine counts, neighbours) and the ViewModel game lifecycle. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MinesweeperViewModelTest { private val app = ApplicationProvider.getApplicationContext<Application>()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameBoardScreenOutcomeTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameBoardScreenOutcomeTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameBoardScreenOutcomeTest.ktindex d4c6e9d698..e433ccb254 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameBoardScreenOutcomeTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameBoardScreenOutcomeTest.kt@@ -27,7 +27,6 @@ import org.robolectric.annotation.Config /** Board screen end states, confirmation dialogs and the mode toggle. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class GameBoardScreenOutcomeTest { @get:Rule val rule = createComposeRule()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameClockTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameClockTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameClockTest.ktindex e0aa08d1c7..17f40b9c7c 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameClockTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameClockTest.kt@@ -25,14 +25,12 @@ import com.vayunmathur.games.minesweeper.platform.MinesweeperUiState import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config import kotlin.random.Random import kotlin.test.Test import kotlin.test.assertEquals /** The 1 Hz clock only ticks while the screen is resumed, running, and not covered by a dialog. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class GameClockTest { @get:Rule val rule = createComposeRule()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameScreenNavigationTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameScreenNavigationTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameScreenNavigationTest.ktindex ff0397be95..c8488efee0 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameScreenNavigationTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/GameScreenNavigationTest.kt@@ -24,11 +24,9 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** GameScreen's deal-if-missing behaviour and the top-level Navigation host. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class GameScreenNavigationTest { @get:Rule val rule = createComposeRule()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/HomeScreenTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/HomeScreenTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/HomeScreenTest.ktindex 0d3b21e0da..47e1bed2b6 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/HomeScreenTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/HomeScreenTest.kt@@ -26,11 +26,9 @@ import kotlin.test.assertNull import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Home: stat cards per size, Continue only with a live field, config dialog hand-off. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class HomeScreenTest { @get:Rule val rule = createComposeRule()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperBoardTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperBoardTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperBoardTest.ktindex b31b342121..5a1166e896 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperBoardTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperBoardTest.kt@@ -39,11 +39,9 @@ import kotlin.test.assertTrue import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** Board screen (title, counter, mode toggle) and field grid cell semantics. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MinesweeperBoardTest { @get:Rule
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperLayoutTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperLayoutTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperLayoutTest.ktindex 6b316aa98e..9df00c24e0 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperLayoutTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/MinesweeperLayoutTest.kt@@ -22,7 +22,6 @@ import kotlin.test.assertTrue /** The whole field fits the window in every orientation, with square cells and no scrolling. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class MinesweeperLayoutTest { @get:Rule val rule = createComposeRule()
games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/dialogs/GameConfigDialogTest.kt
diff --git a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/dialogs/GameConfigDialogTest.kt b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/dialogs/GameConfigDialogTest.ktindex 07b6fe55c9..cc8e650755 100644--- a/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/dialogs/GameConfigDialogTest.kt+++ b/games/minesweeper/src/test/java/com/vayunmathur/games/minesweeper/ui/dialogs/GameConfigDialogTest.kt@@ -16,11 +16,9 @@ import kotlin.test.assertNull import org.junit.Rule import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner-import org.robolectric.annotation.Config /** The size/density picker: live mine count, selection state, start and dismiss. */ @RunWith(RobolectricTestRunner::class)-@Config(sdk = [34]) class GameConfigDialogTest { @get:Rule val rule = createComposeRule()