Skip to content

Commit acedb6e

Browse files
docs: added known issue on Tyhco IT tests for VSCode, added link to further readings
Signed-off-by: Marcello Rinaldo Martina <martina.marcello.rinaldo@outlook.com>
1 parent fd979c0 commit acedb6e

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/java-application-development/development-environment-setup.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,34 @@ pip3 install https://github.com/eclipse-kura/metadata-generator/releases/downloa
8787

8888
See [latest release](https://github.com/eclipse-kura/metadata-generator/releases/latest) for updated installation instructions. Please note that the metadata generator needs to be run only once after cloning the Kura repository.
8989

90+
### Limitations
91+
92+
Currently, Tycho integration tests are not fully supported on this editor. You will see the following error messages on projects that execute the **tycho-surefire-plugin**:
93+
94+
```
95+
The import org.junit cannot be resolved
96+
```
97+
98+
Maven unit tests are supported. On test projects that do not contain integration tests, you can disable the Tycho test plugin and replace it with Maven one with a configuration similar to:
99+
100+
```xml
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-surefire-plugin</artifactId>
104+
<configuration>
105+
<testSourceDirectory>${basedir}/src/test/java/</testSourceDirectory>
106+
<testClassesDirectory>${project.build.directory}/test-classes/</testClassesDirectory>
107+
</configuration>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.eclipse.tycho</groupId>
111+
<artifactId>tycho-surefire-plugin</artifactId>
112+
<configuration>
113+
<skip>true</skip>
114+
</configuration>
115+
</plugin>
116+
```
117+
90118
### Instructions
91119

92120
#### 1. Clone the Kura repository in a new folder (Eclipse IDE gets angry if it shares the sources with VSCode)

docs/java-application-development/kura-addon-archetype.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ After all the recommended extensions are installed, the project will start build
203203

204204
Finally, once the build completes, the workspace will be ready to use.
205205

206+
For more information and troubleshooting, see [IDE setup: Visual Studio Code](./development-environment-setup.md#ide-setup-visual-studio-code).
207+
206208
### Importing Projects in Eclipse IDE
207209

208210
In Eclipse IDE , create a new workspace (it is not necessary to have the workspace in the root of the project) and import the projects with _File | Import | Maven | Existing Maven Projects_.

0 commit comments

Comments
 (0)