Test sources in wrong folder

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Test sources in wrong folder

Flavio Pompermaier
Hi to all,

I was trying to compile Flink 0.9 skipping test compilation
(-Dmaven.test.skip=true) but this is not possible because  there are
projects like flink-test-utils (for example) that requires test classes at
compile scope..shouldn't be better to keep the test source files in the
test folders (src/main/test and src/test/scala instead of src/main/java and
src/main/scala) so that to have all test dependencies with scope=test?

Best,
Flavio
Reply | Threaded
Open this post in threaded view
|

Re: Test sources in wrong folder

Márton Balassi
Dear Flavio,

'mvn clean install -DskipTests' should do the trick.

On Fri, Apr 3, 2015 at 12:11 AM, Flavio Pompermaier <[hidden email]>
wrote:

> Hi to all,
>
> I was trying to compile Flink 0.9 skipping test compilation
> (-Dmaven.test.skip=true) but this is not possible because  there are
> projects like flink-test-utils (for example) that requires test classes at
> compile scope..shouldn't be better to keep the test source files in the
> test folders (src/main/test and src/test/scala instead of src/main/java and
> src/main/scala) so that to have all test dependencies with scope=test?
>
> Best,
> Flavio
>
Reply | Threaded
Open this post in threaded view
|

Re: Test sources in wrong folder

Flavio Pompermaier
This is my problem maybe..I'm quite strict about maven usage :)
SkipTests compiles the tests so you find the classes only because you
compiled them.
This is somehow wrong because that are test-scoped classes, I should not be
forced to compile them if I'm not interested in testing at all.
Don't you agree?

On Fri, Apr 3, 2015 at 1:42 PM, Márton Balassi <[hidden email]>
wrote:

> Dear Flavio,
>
> 'mvn clean install -DskipTests' should do the trick.
>
> On Fri, Apr 3, 2015 at 12:11 AM, Flavio Pompermaier <[hidden email]>
> wrote:
>
> > Hi to all,
> >
> > I was trying to compile Flink 0.9 skipping test compilation
> > (-Dmaven.test.skip=true) but this is not possible because  there are
> > projects like flink-test-utils (for example) that requires test classes
> at
> > compile scope..shouldn't be better to keep the test source files in the
> > test folders (src/main/test and src/test/scala instead of src/main/java
> and
> > src/main/scala) so that to have all test dependencies with scope=test?
> >
> > Best,
> > Flavio
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Test sources in wrong folder

Flavio Pompermaier
I opened a JIRA for this porblem
https://issues.apache.org/jira/browse/FLINK-1827.
Obviously it's an improvement with minor priority but I think this will be
a nice fix for user that want to compile java sources quickly.

On Fri, Apr 3, 2015 at 2:38 PM, Flavio Pompermaier <[hidden email]>
wrote:

> This is my problem maybe..I'm quite strict about maven usage :)
> SkipTests compiles the tests so you find the classes only because you
> compiled them.
> This is somehow wrong because that are test-scoped classes, I should not
> be forced to compile them if I'm not interested in testing at all.
> Don't you agree?
>
> On Fri, Apr 3, 2015 at 1:42 PM, Márton Balassi <[hidden email]>
> wrote:
>
>> Dear Flavio,
>>
>> 'mvn clean install -DskipTests' should do the trick.
>>
>> On Fri, Apr 3, 2015 at 12:11 AM, Flavio Pompermaier <[hidden email]
>> >
>> wrote:
>>
>> > Hi to all,
>> >
>> > I was trying to compile Flink 0.9 skipping test compilation
>> > (-Dmaven.test.skip=true) but this is not possible because  there are
>> > projects like flink-test-utils (for example) that requires test classes
>> at
>> > compile scope..shouldn't be better to keep the test source files in the
>> > test folders (src/main/test and src/test/scala instead of src/main/java
>> and
>> > src/main/scala) so that to have all test dependencies with scope=test?
>> >
>> > Best,
>> > Flavio
>> >
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Test sources in wrong folder

Fabian Hueske-2
Thanks!

2015-04-04 12:54 GMT+02:00 Flavio Pompermaier <[hidden email]>:

> I opened a JIRA for this porblem
> https://issues.apache.org/jira/browse/FLINK-1827.
> Obviously it's an improvement with minor priority but I think this will be
> a nice fix for user that want to compile java sources quickly.
>
> On Fri, Apr 3, 2015 at 2:38 PM, Flavio Pompermaier <[hidden email]>
> wrote:
>
> > This is my problem maybe..I'm quite strict about maven usage :)
> > SkipTests compiles the tests so you find the classes only because you
> > compiled them.
> > This is somehow wrong because that are test-scoped classes, I should not
> > be forced to compile them if I'm not interested in testing at all.
> > Don't you agree?
> >
> > On Fri, Apr 3, 2015 at 1:42 PM, Márton Balassi <[hidden email]
> >
> > wrote:
> >
> >> Dear Flavio,
> >>
> >> 'mvn clean install -DskipTests' should do the trick.
> >>
> >> On Fri, Apr 3, 2015 at 12:11 AM, Flavio Pompermaier <
> [hidden email]
> >> >
> >> wrote:
> >>
> >> > Hi to all,
> >> >
> >> > I was trying to compile Flink 0.9 skipping test compilation
> >> > (-Dmaven.test.skip=true) but this is not possible because  there are
> >> > projects like flink-test-utils (for example) that requires test
> classes
> >> at
> >> > compile scope..shouldn't be better to keep the test source files in
> the
> >> > test folders (src/main/test and src/test/scala instead of
> src/main/java
> >> and
> >> > src/main/scala) so that to have all test dependencies with scope=test?
> >> >
> >> > Best,
> >> > Flavio
> >> >
> >>
> >
> >
>