Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Experimental]Android support #258

Merged
merged 19 commits into from
Dec 4, 2016
Merged

[Experimental]Android support #258

merged 19 commits into from
Dec 4, 2016

Conversation

originx
Copy link
Contributor

@originx originx commented Nov 27, 2016

lets merge it to master and polish it with additional commits so it does not get stale (hopefully it could also attract attention from other android devs)

originx and others added 19 commits October 16, 2016 22:25
Partialy done still failing tests and inner static classes break
reflection process
…y can access super constructors and set their visibility for reflection "raphw/byte-buddy#199 (comment)"
Enable method handle after constructor call
(failing due to missing DexOptions still)
…bytebuddy

Adapted the Jgiven rule so a cache dir from the device is fetched for saving the test results

problem left:
pulling the results back on the build machine, and creating html reports automagically

unknown:
ansiUtils proper usage?
# Conflicts:
#	gradle.properties
took over version number, but kept the  org.gradle.jvmargs=-Xmx1536M
- JSON reports are now stored in the public Download folder
  of the Android device. That way the reports are still available
  after the application has been uninstalled, which cannot
  currently prevented with the Gradle connectedAndroidTest task
- This requires that the permission WRITE_EXTERNAL_STORAGE
- After the test, the JSON files are pulled from the device
  and the HTML report can be generated
- Also grant read access at runtime, which seems to be necessary
- Improved the Gradle tasks to properly clean up
- Made the Activity and the JGiven test more interesting
- This refactoring should be largely backwards compatible as long as no
  internal JGiven classes have been used
- Created a new interface StageCreator to make it easier to change the
  stage creation strategy. This simplifies the Spring and the Android
  integrations
- Changed the way the StepInterceptor is used
- Created new classes JGivenMethodRule and JGivenClassRule to replace
  the old rule classes. The old classes are deprecated now
- Simplified the implementation of the Spring and Android integrations
Enable downloading of JGiven JSON reports from Android Device
@originx originx mentioned this pull request Nov 27, 2016
@janschaefer
Copy link
Contributor

Great, thanks! I will merge as soon as I have configured Travis to build the Android projects.

@janschaefer janschaefer merged commit 973bb32 into TNG:master Dec 4, 2016
@janschaefer
Copy link
Contributor

For now, I have just excluded the modules from the Travis CI build. This can be fixed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants