You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Rehman Murad Ali <re...@venturedive.com> on 2020/02/07 14:19:19 UTC
Unable to run ParDoTests from CLI
Hello Community,
I have been trying to run test cases from CLI. ParDoTest.java has some
inner classes with test functions (for example TimerTest). This is the
command I have used to run the test:
./gradlew runners:direct-java:needsRunnerTests --tests
"org.apache.beam.sdk.transforms.ParDoTest$TimerTests"
Here is the error message:
[image: image.png]
I need assistance regarding this matter.
*Thanks & Regards*
*Rehman Murad Ali*
Software Engineer
Mobile: +92 3452076766
Skype: rehman.muradali
Re: Unable to run ParDoTests from CLI
Posted by Rehman Murad Ali <re...@venturedive.com>.
Thanks, Ismaël.
*Rehman Murad Ali*
Software Engineer
Mobile: +92 3452076766
Skype: rehman.muradali
On Fri, Feb 7, 2020 at 7:29 PM Ismaël Mejía <ie...@gmail.com> wrote:
> Use
>
> ./gradlew :runners:direct-java:needsRunner --tests "*ParDoTest\$TimerTests"
>
> For ValidatesRunner for example:
> /gradlew :runners:direct-java:validatesRunner --tests
> "*ParDoTest\$TimerFamily*"
>
> Credit to Brian who helped me because I was struggling with the same issue
> last week.
>
>
> On Fri, Feb 7, 2020 at 3:19 PM Rehman Murad Ali <
> rehman.muradali@venturedive.com> wrote:
>
>> Hello Community,
>>
>> I have been trying to run test cases from CLI. ParDoTest.java has some
>> inner classes with test functions (for example TimerTest). This is the
>> command I have used to run the test:
>>
>> ./gradlew runners:direct-java:needsRunnerTests --tests
>> "org.apache.beam.sdk.transforms.ParDoTest$TimerTests"
>>
>> Here is the error message:
>> [image: image.png]
>>
>>
>> I need assistance regarding this matter.
>>
>>
>> *Thanks & Regards*
>>
>>
>>
>> *Rehman Murad Ali*
>> Software Engineer
>> Mobile: +92 3452076766
>> Skype: rehman.muradali
>>
>
Re: Unable to run ParDoTests from CLI
Posted by Reuven Lax <re...@google.com>.
FYI, this is documented here
https://cwiki.apache.org/confluence/display/BEAM/Contribution+Testing+Guide#ContributionTestingGuide-HowtorunJavaNeedsRunnertests
On Fri, Feb 7, 2020 at 6:29 AM Ismaël Mejía <ie...@gmail.com> wrote:
> Use
>
> ./gradlew :runners:direct-java:needsRunner --tests "*ParDoTest\$TimerTests"
>
> For ValidatesRunner for example:
> /gradlew :runners:direct-java:validatesRunner --tests
> "*ParDoTest\$TimerFamily*"
>
> Credit to Brian who helped me because I was struggling with the same issue
> last week.
>
>
> On Fri, Feb 7, 2020 at 3:19 PM Rehman Murad Ali <
> rehman.muradali@venturedive.com> wrote:
>
>> Hello Community,
>>
>> I have been trying to run test cases from CLI. ParDoTest.java has some
>> inner classes with test functions (for example TimerTest). This is the
>> command I have used to run the test:
>>
>> ./gradlew runners:direct-java:needsRunnerTests --tests
>> "org.apache.beam.sdk.transforms.ParDoTest$TimerTests"
>>
>> Here is the error message:
>> [image: image.png]
>>
>>
>> I need assistance regarding this matter.
>>
>>
>> *Thanks & Regards*
>>
>>
>>
>> *Rehman Murad Ali*
>> Software Engineer
>> Mobile: +92 3452076766 <+92%20345%202076766>
>> Skype: rehman.muradali
>>
>
Re: Unable to run ParDoTests from CLI
Posted by Ismaël Mejía <ie...@gmail.com>.
Use
./gradlew :runners:direct-java:needsRunner --tests "*ParDoTest\$TimerTests"
For ValidatesRunner for example:
/gradlew :runners:direct-java:validatesRunner --tests
"*ParDoTest\$TimerFamily*"
Credit to Brian who helped me because I was struggling with the same issue
last week.
On Fri, Feb 7, 2020 at 3:19 PM Rehman Murad Ali <
rehman.muradali@venturedive.com> wrote:
> Hello Community,
>
> I have been trying to run test cases from CLI. ParDoTest.java has some
> inner classes with test functions (for example TimerTest). This is the
> command I have used to run the test:
>
> ./gradlew runners:direct-java:needsRunnerTests --tests
> "org.apache.beam.sdk.transforms.ParDoTest$TimerTests"
>
> Here is the error message:
> [image: image.png]
>
>
> I need assistance regarding this matter.
>
>
> *Thanks & Regards*
>
>
>
> *Rehman Murad Ali*
> Software Engineer
> Mobile: +92 3452076766
> Skype: rehman.muradali
>