Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Setup for non-maven

Date: Fri, 15 Jun 2012 15:19:32 -0700 (PDT)
From: Leif Ashley <leifash...@gmail.com>
To: robolectric@googlegroups.com
Message-Id: <3d482a5b-ff76-4ce7-9e33-7ecba2a1cdad@googlegroups.com>
In-Reply-To: <e9b27290-71fd-42d2-ac37-0b0654ca6733@googlegroups.com>
References: <44edcaf5-748d-4f6a-a480-4a53e4f96f16@googlegroups.com>
 <e9b27290-71fd-42d2-ac37-0b0654ca6733@googlegroups.com>
Subject: Re: Setup for non-maven
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2242_18462989.1339798772358"

------=_Part_2242_18462989.1339798772358
Content-Type: multipart/alternative; 
	boundary="----=_Part_2243_29630916.1339798772358"

------=_Part_2243_29630916.1339798772358
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Cool - I'll look at the starter. I have it somewhat running with a quick=20
test setup of my own, but I think I'm missing dependencies. I found this on=
=20
their site:

"If you=E2=80=99re not using Maven to build your project, you=E2=80=99ll pr=
obably want to=20
grab the latest robolectric-X.X.X-jar-with-dependencies.jar from Sonatype<h=
ttps://oss.sonatype.org/index.html#nexus-search;quick~robolectric>
"

But for the life of me, I cannot figure out how to download the jar from=20
Sonatype. lol



On Friday, June 15, 2012 6:13:12 PM UTC-4, Chuck Greb wrote:
>
> Using IntelliJ, you can either include Robolectric as a module (source) o=
r=20
> a library (jar). Robolectric should be added as a dependency to your=20
> application module (above Android platform, scope TEST).
>
> You should setup the tests as Java/JUnit (not an Android project test).=
=20
> Robolectric tests live inside the same module as your application. No=20
> emulator/device is required.
>
> Also, check out the AndroidIntelliJStarter project for a good example of=
=20
> integration as a submodule.
>
> https://github.com/pivotal/AndroidIntelliJStarter
>
> Best,
> Chuck
>
> On Friday, June 15, 2012 5:50:56 PM UTC-4, Leif Ashley wrote:
>>
>> I am wanting to use Robolectric in our development efforts and I'm a bit=
=20
>> confused on a few points.
>>
>> The examples all show maven. However we are using Idea to run/test via=
=20
>> the IDE launch and scripted ant scripts for test builds. What's the best=
=20
>> method to unit test an android application with Robolectric in this=20
>> senario? Do I create a separate java project or an Android test project?=
=20
>> Personally, I want to have it just run as a local test (i.e. not running=
 on=20
>> a USB/simulator device).
>>
>
------=_Part_2243_29630916.1339798772358
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Cool - I'll look at the starter. I have it somewhat running with a quick te=
st setup of my own, but I think I'm missing dependencies. I found this on t=
heir site:<div><br></div><div>"<span style=3D"color: rgb(51, 51, 51); font-=
family: helvetica, arial, sans-serif; font-size: 14px; line-height: 19px; "=
>If you=E2=80=99re not using Maven to build your project, you=E2=80=99ll pr=
obably want to grab the latest robolectric-X.X.X-jar-with-dependencies.jar =
from&nbsp;</span><a href=3D"https://oss.sonatype.org/index.html#nexus-searc=
h;quick~robolectric" style=3D"color: rgb(119, 119, 119); border-bottom-styl=
e: solid; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204)=
; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: =
19px; ">Sonatype</a>"</div><div><br></div><div>But for the life of me, I ca=
nnot figure out how to download the jar from Sonatype. lol</div><div><br></=
div><div><br><br>On Friday, June 15, 2012 6:13:12 PM UTC-4, Chuck Greb wrot=
e:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;b=
order-left: 1px #ccc solid;padding-left: 1ex;"><div>Using IntelliJ, you can=
 either include Robolectric as a module (source) or a library (jar).&nbsp;R=
obolectric should be added as a dependency to your application module (abov=
e Android platform, scope TEST).<br></div><div><br></div><div>You should se=
tup the tests as Java/JUnit (not an Android project test). Robolectric test=
s live inside the same module as your application. No emulator/device is re=
quired.</div><div><div><div><br></div><div>Also, check out the AndroidIntel=
liJStarter project for a good example of integration as a submodule.<br></d=
iv><div><br></div><div><a href=3D"https://github.com/pivotal/AndroidIntelli=
JStarter" target=3D"_blank">https://github.com/pivotal/<wbr>AndroidIntelliJ=
Starter</a></div><div><br></div><div>Best,</div><div>Chuck<br><br>On Friday=
, June 15, 2012 5:50:56 PM UTC-4, Leif Ashley wrote:<blockquote class=3D"gm=
ail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;p=
adding-left:1ex">I am wanting to use Robolectric in our development efforts=
 and I'm a bit confused on a few points.<div><br></div><div>The examples al=
l show maven. However we are using Idea to run/test via the IDE launch and =
scripted ant scripts for test builds. What's the best method to unit test a=
n android application with Robolectric in this senario? Do I create a separ=
ate java project or an Android test project? Personally, I want to have it =
just run as a local test (i.e. not running on a USB/simulator device).</div=
></blockquote></div></div></div></blockquote></div>
------=_Part_2243_29630916.1339798772358--

------=_Part_2242_18462989.1339798772358--