Test in commandline

56 views
Skip to first unread message

Louis Rannou

unread,
May 11, 2019, 4:50:08 PM5/11/19
to public-transport-enabler-discuss
Hi, I'm using gradle in commandline mode. I try to run the tests (from the root and also from the enbler directory) with the following line :

$ gradle -Dtest.single=ParisProvider test

It seems to run all the tests, I have many failures, the first one is :

de.schildbach.pte.live.TfiProviderLiveTest > shortTrip FAILED
java.lang.AssertionError at TfiProviderLiveTest.java:81

Is the commandline wrong ?

Andreas Schildbach

unread,
May 13, 2019, 3:17:51 AM5/13/19
to public-transport...@googlegroups.com
Your command line is probably fine.

The reason for the failure is these "live tests" are highly dependent on
the server side and servers tend to change all the time (it's not under
our control). Because of that, all live tests are excluded from the unit
tests that are run with each build.


On 11/05/2019 22.50, Louis Rannou wrote:
> Hi, I'm using gradle in commandline mode. I try to run the tests (from
> the root and also from the enbler directory) with the following line :
>
> *$ gradle -Dtest.single=ParisProvider test*
>
>
> It seems to run all the tests, I have many failures, the first one is :
>
> *de.schildbach.pte.live.TfiProviderLiveTest > shortTrip FAILED
> java.lang.AssertionError at TfiProviderLiveTest.java:81*
>
>
> Is the commandline wrong ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "public-transport-enabler-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> public-transport-enabl...@googlegroups.com
> <mailto:public-transport-enabl...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/public-transport-enabler-discuss/2b93022c-23ba-4723-8581-eb5fd6a1eb99%40googlegroups.com
> <https://groups.google.com/d/msgid/public-transport-enabler-discuss/2b93022c-23ba-4723-8581-eb5fd6a1eb99%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Louis Rannou

unread,
May 13, 2019, 7:25:37 AM5/13/19
to public-transport-enabler-discuss
Oh ok.

Is there any usual way for testing code offline ? If I add my city, can I check my code is correct ?


Le lundi 13 mai 2019 09:17:51 UTC+2, Andreas Schildbach a écrit :
Your command line is probably fine.

The reason for the failure is these "live tests" are highly dependent on
the server side and servers tend to change all the time (it's not under
our control). Because of that, all live tests are excluded from the unit
tests that are run with each build.


On 11/05/2019 22.50, Louis Rannou wrote:
> Hi, I'm using gradle in commandline mode. I try to run the tests (from
> the root and also from the enbler directory) with the following line :
>
>     *$ gradle -Dtest.single=ParisProvider test*
>
>
> It seems to run all the tests, I have many failures, the first one is :
>
>     *de.schildbach.pte.live.TfiProviderLiveTest > shortTrip FAILED
>     java.lang.AssertionError at TfiProviderLiveTest.java:81*
>
>
> Is the commandline wrong ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "public-transport-enabler-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
Reply all
Reply to author
Forward
0 new messages