add testing
This commit is contained in:
		
							parent
							
								
									4e53f1615e
								
							
						
					
					
						commit
						0ffd47a85b
					
				
					 2 changed files with 29 additions and 10 deletions
				
			
		|  | @ -58,15 +58,11 @@ dependencies { | ||||||
|     implementation 'androidx.core:core-ktx:1.7.0' |     implementation 'androidx.core:core-ktx:1.7.0' | ||||||
|     implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' |     implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' | ||||||
|     implementation 'androidx.activity:activity-compose:1.3.1' |     implementation 'androidx.activity:activity-compose:1.3.1' | ||||||
|     implementation "androidx.compose.ui:ui:$compose_ui_version" |     implementation "androidx.compose.ui:ui:$compose_version" | ||||||
|     implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version" |     implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" | ||||||
|     implementation 'androidx.compose.material:material:1.2.0' |     implementation 'androidx.compose.material:material:1.2.0' | ||||||
|     testImplementation 'junit:junit:4.13.2' | 
 | ||||||
|     androidTestImplementation 'androidx.test.ext:junit:1.1.5' |     debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" | ||||||
|     androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' |  | ||||||
|     androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version" |  | ||||||
|     debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version" |  | ||||||
|     debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version" |  | ||||||
| 
 | 
 | ||||||
|     // ViewModel |     // ViewModel | ||||||
|     implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1' |     implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1' | ||||||
|  | @ -92,6 +88,25 @@ dependencies { | ||||||
|     implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' |     implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' | ||||||
|     implementation 'androidx.navigation:navigation-compose:2.5.3' |     implementation 'androidx.navigation:navigation-compose:2.5.3' | ||||||
|     implementation 'androidx.hilt:hilt-navigation-compose:1.0.0' |     implementation 'androidx.hilt:hilt-navigation-compose:1.0.0' | ||||||
|  | 
 | ||||||
|  |     // JUnit | ||||||
|  |     testImplementation 'junit:junit:4.13.2' | ||||||
|  |     androidTestImplementation 'androidx.test.ext:junit:1.1.5' | ||||||
|  | 
 | ||||||
|  |     // Mocking | ||||||
|  |     testImplementation 'org.mockito.kotlin:mockito-kotlin:3.2.0' | ||||||
|  | 
 | ||||||
|  |     // Networking | ||||||
|  |     implementation 'com.squareup.retrofit2:retrofit:2.9.0' | ||||||
|  |     implementation 'com.squareup.retrofit2:converter-gson:2.9.0' | ||||||
|  |     implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' | ||||||
|  |     testImplementation 'androidx.arch.core:core-testing:2.1.0' | ||||||
|  | 
 | ||||||
|  |     // GUI testing | ||||||
|  |     androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' | ||||||
|  |     androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" | ||||||
|  |     debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" | ||||||
|  | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Allow references to generate code | // Allow references to generate code | ||||||
|  |  | ||||||
|  | @ -1,6 +1,10 @@ | ||||||
| buildscript { | buildscript { | ||||||
|     ext { |     ext { | ||||||
|         compose_ui_version = '1.2.0' |         compose_ui_version = '1.2.0' | ||||||
|  |         compose_version = '1.1.1' | ||||||
|  |         coreTestingVersion = '2.1.0' | ||||||
|  |         espressoVersion = '3.4.0' | ||||||
|  |         kotlinVersion = '1.6.10' | ||||||
|     } |     } | ||||||
| }// Top-level build file where you can add configuration options common to all sub-projects/modules. | }// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||||||
| plugins { | plugins { | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 reyniersbram
						reyniersbram