-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
ctg-enhancementNew feature, improvement or change requestNew feature, improvement or change requeststatus-verifiedBug fix is verifiedBug fix is verified
Milestone
Description
Description
When UTBot tries to generate tests in Android Studio for typical project it fails due inability to 'understand' Android specific, e.g. resolve R.java
file.
To Reproduce
Steps to reproduce the behavior:
- Install latest Android Studio with default settings. I've checked with 2021.3.1, copy could be downloaded from Onebox
- Start new Project wizard
- Select 'Phone and Tablet' template and 'Basic Activity'
- On next step select 'Java' as language, everything else leave default.
- Finish wizard and wait Gradle and IDEA sync and update the project
- Try to generate tests for
com.example.myapplication.MainActivity
with default UTBot settings
Expected behavior
Tests are generated
Actual behavior
Build error happens with reported problems like:
package com.example.myapplication.databinding does not exist
package R does not exist
Visual proofs (screenshots, logs, images)
Additional context
Gradle is able to build and run the app.
Metadata
Metadata
Assignees
Labels
ctg-enhancementNew feature, improvement or change requestNew feature, improvement or change requeststatus-verifiedBug fix is verifiedBug fix is verified
Type
Projects
Status
Done