Skip to content

Commit

Permalink
fix: rename test file and class name
Browse files Browse the repository at this point in the history
Renamed every test class so it links correctly to the file tested.
Moved MapKtTest.kt to the correct package
  • Loading branch information
AdrienBousquieEPFL committed Oct 17, 2024
1 parent cdb4a61 commit f83388a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class LoginTest : TestCase() {
class SignInKtTest : TestCase() {

@get:Rule val composeTestRule = createComposeRule()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.github.lookupgroup27.lookup.ui.overview
package com.github.lookupgroup27.lookup.ui.map

import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createComposeRule
import com.github.lookupgroup27.lookup.ui.map.MapScreen
import com.github.lookupgroup27.lookup.ui.navigation.NavigationActions
import org.junit.*
import org.mockito.kotlin.*

class MapScreenTest {
class MapKtTest {

@get:Rule val composeTestRule = createComposeRule()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.junit.Before
import org.junit.Rule
import org.junit.Test

class CalendarScreenTest {
class CalendarKtTest {

private lateinit var calendarViewModel: CalendarViewModel
private lateinit var navigationActions: NavigationActions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class LandingScreenTest {
class LandingKtTest {

@get:Rule val composeTestRule = createAndroidComposeRule<MainActivity>()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.github.lookupgroup27.lookup.ui.navigation.*
import org.junit.*
import org.mockito.kotlin.*

class MenuScreenTest {
class MenuKtTest {

@get:Rule val composeTestRule = createComposeRule()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.junit.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify

class QuizScreenTest {
class QuizKtTest {

@get:Rule val composeTestRule = createComposeRule()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.junit.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify

class ProfileScreenTest {
class ProfileKtTest {

@get:Rule val composeTestRule = createComposeRule()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.junit.Test
import org.mockito.kotlin.mock
import org.mockito.kotlin.verify

class SkyTrackerScreenTest {
class SkyTrackerKtTest {

@get:Rule val composeTestRule = createComposeRule()

Expand Down

0 comments on commit f83388a

Please sign in to comment.