Skip to content

Tests all Parcelable classes in a package, using random values and a set of fixed values.

License

Notifications You must be signed in to change notification settings

edallagnol/parcelable-tester

Repository files navigation

parcelable-tester

Usage:

import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.runner.RunWith;

import com.edallagnol.parcelabletester.ParcelableTester;

@RunWith(AndroidJUnit4.class)
public class ParcelableTest {

	@org.junit.Test
	public void test() throws Exception {
		new ParcelableTester(InstrumentationRegistry.getTargetContext())
				.testAllInAppPackage();
	}
	
}

Gradle:

Project build.gradle:

allprojects {
    repositories {
        ...
        // com.edallagnol
        maven { url "https://mymavenrepo.com/repo/Ghd1bN1WIPA0LBBLKxW8/" }
    }
}

Module build.gradle:

dependencies {
	implementation 'com.edallagnol:parcelable-tester-annotations:0.4'
	...
	androidTestImplementation 'com.edallagnol:parcelable-tester:0.4'
}

About

Tests all Parcelable classes in a package, using random values and a set of fixed values.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages