You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Georg Heiler <ge...@gmail.com> on 2017/04/23 05:57:24 UTC
flink testing
Hi,
is there something like spark-testing-base for flink as well?
Cheers,
Georg
Re: flink testing
Posted by Maximilian Bode <ma...@tngtech.com>.
Hi Georg,
Have a look at (Streaming)MultipleProgramsTestBase (https://github.com/apache/flink/blob/master/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/streaming/util/StreamingMultipleProgramsTestBase.java | https://github.com/apache/flink/blob/master/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/MultipleProgramsTestBase.java).
Best regards,
Max
> Am 23.04.2017 um 17:19 schrieb Georg Heiler <ge...@gmail.com>:
>
> Spark testing base https://github.com/holdenk/spark-testing-base offers some Base classes to use when writing tests with Spark which make it simpler to write unit tests for functions in spark i.e. you do not manually need to instantiate a spark context / flink execution environment for each test case.
>
> You've written an awesome program in Spark and now its time to write some tests. Only you find yourself writing the code to setup and tear down local mode Spark in between each suite and you say to your self: This is not my beautiful code.
>
>
>
>
> Ted Yu <yu...@gmail.com> schrieb am So., 23. Apr. 2017 um 10:46 Uhr:
>> Please give more context by describing what spark-test-base does :-)
>>
>> > On Apr 22, 2017, at 10:57 PM, Georg Heiler <ge...@gmail.com> wrote:
>> >
>> > Hi,
>> >
>> > is there something like spark-testing-base for flink as well?
>> >
>> > Cheers,
>> > Georg
Re: flink testing
Posted by Georg Heiler <ge...@gmail.com>.
Spark testing base https://github.com/holdenk/spark-testing-base offers
some Base classes to use when writing tests with Spark which make it
simpler to write unit tests for functions in spark i.e. you do not manually
need to instantiate a spark context / flink execution environment for each
test case.
You've written an awesome program in Spark and now its time to write some
tests. Only you find yourself writing the code to setup and tear down local
mode Spark in between each suite and you say to your self: This is not my
beautiful code.
<https://github.com/holdenk/spark-testing-base#how>
Ted Yu <yu...@gmail.com> schrieb am So., 23. Apr. 2017 um 10:46 Uhr:
> Please give more context by describing what spark-test-base does :-)
>
> > On Apr 22, 2017, at 10:57 PM, Georg Heiler <ge...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > is there something like spark-testing-base for flink as well?
> >
> > Cheers,
> > Georg
>
Re: flink testing
Posted by Ted Yu <yu...@gmail.com>.
Please give more context by describing what spark-test-base does :-)
> On Apr 22, 2017, at 10:57 PM, Georg Heiler <ge...@gmail.com> wrote:
>
> Hi,
>
> is there something like spark-testing-base for flink as well?
>
> Cheers,
> Georg