[ 
https://issues.apache.org/jira/browse/FLINK-32323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17732028#comment-17732028
 ] 

Lim Qing Wei commented on FLINK-32323:
--------------------------------------

Hi [~martijnvisser] , but without the `<type>test-jar</type>` in your 
depenency, one cannot use the TestHarness, because they live in the test 
package in code here: 
[https://github.com/apache/flink/blob/4a742c86a917af432c0a6ec433acf18c176faf1f/flink-streaming-java/src/test/java/org/apache/flink/streaming/util/KeyedTwoInputStreamOperatorTestHarness.java#L34]

 

 

> Flink Testing doc missing key information about dependency
> ----------------------------------------------------------
>
>                 Key: FLINK-32323
>                 URL: https://issues.apache.org/jira/browse/FLINK-32323
>             Project: Flink
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Lim Qing Wei
>            Priority: Major
>
> On this doc: 
> [https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/testing/]
>  
> It links to this doc 
> [https://nightlies.apache.org/flink/flink-docs-master/docs/dev/configuration/testing/]
>  for project configuration. But it does not mention to use the TestHarness 
> from Flink, we also need to add the following dependency:
>  
> {noformat}
> <dependency>
>     <groupId>org.apache.flink</groupId>
>     <artifactId>flink-streaming-java</artifactId>
>     <version>${flink.version}</version>
>     <type>test-jar</type>
>     <scope>test</scope>
> </dependency>{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to