redhat-developer / redhat-developer/vscode-java
Auto build will delete test resources in UT
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
[provide a description of the issue]
Environment
- Operating System:Windows11
- JDK version:17
- Visual Studio Code version:1.87.0
- Java extension version:v1.28.1
Steps To Reproduce
- have a maven project like this
src/main/java
a.java
src/main/resources
test.json
src/test/java
aTest.java
src/test/resources
test.csv - After run Java: Rebuild Project, I found that test.csv is copied to the target, but deteled in a while.
So I run test in the aTest.java, I got a message that test.csv is not found. - If I turn off auto build, success.
Is it possible that auto build cleaned the resources?
pom.xml
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
pom.xml の Maven 設定から始め、Java を使って問題を再現します。自動ビルドを有効にした状態で Rebuild Project を実行します。src/test/resources/test.csv をターゲット出力と比較し、aTest.java を実行します。完了とは、再ビルド後もテストリソースが利用可能なままで、テストが成功することを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- build-system, testing
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100