Saturday, February 18, 2012

Re: [android-developers] test cases are in a different package

If test cases are put in the same package, then release version will contain test project.

who is going to do that? the test cases are in a separate project?

In android, test project is usually put in a directory called tests under the tested project.
If it is a sub-project of the under testing project.

On Sat, Feb 18, 2012 at 8:31 AM, Ray Tayek <rtayek@ca.rr.com> wrote:
At 03:06 PM 2/17/2012, you wrote:

If test cases are put in the same package, then release version will contain test project.

who is going to do that? the test cases are in a separate project?


And you should only test public interface.

i disagree. i usually test non-public classes and methods.

thanks

在 2012-2-18 ä¸Šå ˆ6:21,"Ray Tayek" <<mailto:rtayek@ca.rr.com>rtayek@ca.rr.com>写é ":

having the test cases in a different package make it hard to test methods and classes with protected or the default visibility.

is there some reason why the test cases are put into a separate package?

placing them in the same package seems to work ok.

am going to run into trouble by doing this? ...

---
co-chair http://ocjug.org/

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment