Good examples of Android projects covered by tests? - android

Could you point some good examples of Android projects that have unit testing in action?
It would be great to learn by example from those.

Look at the android sources. You can find them on https://android.googlesource.com/.
To be a bit more precise take a look at the Calculator app for example.
https://android.googlesource.com/platform/packages/apps/Calculator.git
You can see the test directory. I guess that is what you meant.
I hope that this is what you were looking for.

Related

How to use Dokka to generate Docs like Kotlinlang.org

AFAIK Kotlin's Documentation was made using Dokka. But the Examples stated in Dokka's Readme is only generating ultra basic webpages/markdown files with no elegance whatsoever.
It just looks like this
Here's another one by Atrium, docs link.
I'm wondering if I'm doing anything wrong.
I've also looked at the issues page and been browsing through other open source github projects that has used Dokka and the result is always the same.
Now a good example of how a tool that generates beautiful documentation would be Jazzy by Realm for Swift/Obj-C. Using it can be as easy as running one command on the terminal.
Here's an example documentation created using Jazzy
Further research with suggests that I may have to use third party tools like Gitbook or Jekyll to generate the kind of documentation I'm looking, is that really the only way?
Kotlinlang uses some custom styles for one of the dokka's output formats. Development on some better looking docs is underway

Android MVVM sample architecture project required

I am new to android MVVM architecture. Can I get any sample project from where I can follow folder structure for the implementation. I want to call REST Apis from the app. But I didn't find any good sample. Please let me know any good projects ti refer (Apart from google samples)
Like others mentioned, Google would be the first place to search this kind of stuff. As you mentioned, there are MVVM samples provided by Google on GitHub. However, they are a bit complicated to understand due to the project being really large. I believe this that this sample project is much easier to understand and does a good job explaining MVVM: https://proandroiddev.com/mvvm-architecture-viewmodel-and-livedata-part-1-604f50cda1.
Hopefully this helps!

Testing Application in Android Studio with Roboelectric

I need to testing for my application using Roboelectric with AndroidStudio,integration of Roboelectric is over,now i have to
network calls for which i used Spring.io,i need to test services,BroadcastReceivers and Views.
Please Suggest me some links or books,i already searched for that i didnot get documentation for Roboelectric.
Yeah, there is not much documentation about Robolectric. I had to search for examples all over the internet.
The official Robolectric site is a good way to start . Also the Robolectric blog has really nice examples . But what I found really helpful was this video . Colin Miller makes it look so simple.
I'm still looking for a book or something more formal, so to speak. So if you find something please let me know, I'll do the same. cheers!

Sample application for Android Tesing

I'm new to android testing. Can anybody please suggest me where I can get sample application along with test projects?
There's framework called
Robotium
http://code.google.com/p/robotium/wiki/Getting_Started
http://testdroid.com/tech/54/automated-ui-testing-android-applications-robotium
also
http://pivotal.github.com/robolectric/
http://pivotal.github.com/robolectric/user-guide.html
you might want to try it out.
Robotium is overkill for the moment, though you should remember it.
Start by reading the material regarding Testing in the Developers Guide. Its on the Dev Guide tab. One area at the bottom of Framework Topics, the other is under Developing.
There are two tutorials: Hello, Testing and Activity Testing. There's also a sample test project for the Note Pad sample app.
Of course, testing can mean many different things. I can't think of anything offhand that's for beginners. I know Beck's Test-Driven Development, and Working With Legacy Code (forgot the author, but you can Google it) for learning how to effectively unit test in OOP environments.
This should lead you in the right direction. It includes how to build a sample application and additional resources.

Learning resources for Android Open Source Project (AOSP)

I can't find any good learning resource on AOSP. Can't find any books, or comperhensive web resources on that topic. Book that would cover all topics about it would be best. Like how to setup enviroment, download code, use repo/git, change basic things, make custom roms, etc etc. Is there any book like that? Or any other resource on web that have that info in one place?
Karim Yaghmour's embedded android covers a fair bit of AOSP stuff. There are some good videos by Tim Bird and Yaghmour, google for those.
If you want to create custom roms you probably want the xda-developers and their forums or cyanogen.
Repo docs are fairly sparse: see this post for that.
this could be a start : http://source.android.com/source/downloading.html
The resource that really introduced me in this topic is this. There are two videos that give basic knowledge about the AOSP development process. After that, the best your choice is Google :) But then you'll know what to answer!

Categories

Resources