microsoft / microsoft/vscode-java-test

Question: how to run tests with properties from alternative pom file

Đang mở
#1,365 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

ai-triaged enhancement junit low-priority maven question test-execution
Ngôn ngữ chính
TypeScript
Star
340
Fork
173
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
18

Mô tả

I'm trying to run tests for a project which uses Arquillian integration test framework. The project has an alternative pom.xml file (outside of the root dir of the project) which should be used when runninng tests via maven

mvn clean install -f testsuite/integration-arquillian/pom.xml

but when running tests from vscode, I get exceptions/errors that seem like I'm missing all the mandatory default properties that are defined in the pom files but are missing when running tests via vscode.

Would you have any pointers for me on how to setup Java test runner for vscode for a project like this? I'd appreciate any help!

The project I'm working with is keycloak and the pom with the (apparently ignored) properties is testsuite/integration-arquillian/tests/pom.xml.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với thiết lập trình chạy kiểm thử Java cho VS Code và so sánh hành vi khởi chạy kiểm thử của nó với mvn clean install -f testsuite/integration-arquillian/pom.xml. Kiểm tra các thuộc tính trong testsuite/integration-arquillian/tests/pom.xml của Keycloak được tham chiếu và xác định xem có thể chọn POM thay thế hay không. Hoàn thành khi các kiểm thử Arquillian chạy được từ VS Code với các thuộc tính bắt buộc.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, vscode
Lĩnh vực
testing, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.