1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-26 17:54:50 +02:00

Move test to the location where gradle expects to find them

Before moving the tests it seemed as if running ./gradlew test didn't
actually execute any unit tests. And without moving the DatabaseTest
to androidTest I couldn't get Android studio to actuallly execute the
test. Now it works both in Android studio and also from the command
line (./gradlew connectedCheck).

Also set testApplicationId to the normal app id + .test suffix.
This commit is contained in:
Erik Johansson
2018-01-15 20:19:51 +01:00
parent c1f247cb27
commit eae1f5d3b0
4 changed files with 4 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ android {
defaultConfig { defaultConfig {
applicationId "com.health.openscale" applicationId "com.health.openscale"
testApplicationId "com.health.openscale.test"
minSdkVersion 18 minSdkVersion 18
targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION
versionCode 22 versionCode 22

View File

@@ -13,7 +13,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/> * along with this program. If not, see <http://www.gnu.org/licenses/>
*/ */
package com.health.openscale.junit; package com.health.openscale;
import android.arch.persistence.room.Room; import android.arch.persistence.room.Room;
import android.content.Context; import android.content.Context;

View File

@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/> * along with this program. If not, see <http://www.gnu.org/licenses/>
*/ */
package com.health.openscale.junit; package com.health.openscale;
import com.health.openscale.core.datatypes.ScaleMeasurement; import com.health.openscale.core.datatypes.ScaleMeasurement;
import com.health.openscale.core.utils.CsvHelper; import com.health.openscale.core.utils.CsvHelper;

View File

@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/> * along with this program. If not, see <http://www.gnu.org/licenses/>
*/ */
package com.health.openscale.junit; package com.health.openscale;
import com.health.openscale.core.utils.DateTimeHelpers; import com.health.openscale.core.utils.DateTimeHelpers;