Disable test generation if `generateTestsClass` is unset

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
kotlin
Lĩnh vực
build-system

Hướng nghiên cứu

Start by reading the generateTests implementation and how generateTestsClass is configured by convention; the issue does not name specific files or tests. Check how current projects and the template rely on the convention, then decide whether disabling generation needs a deprecation cycle or should fail silently when the convention supplied the missing class. Done means the chosen behavior preserves or deliberately phases out those existing uses.

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

Mô tả

This effectively removes the GenerateTests.kt convention, but tbh it's a strange convention to have.
However, all current projects that relied on the convention (including the template) would suffer, so maybe some deprecation cycle of sorts is needed?

Alternatively, we could have generateTests do nothing if it can't find the necessary class, i.e. fail silently, but only if the class is set by convention.
Sounds like a worse idea tbh

Ngôn ngữ chính
Kotlin
Star
34
Fork
1
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của Kotlin/compiler-plugin-dev-kit

Tất cả issue của Kotlin/compiler-plugin-dev-kit

Issue tương tự

Thêm issue về Kotlin

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.