Adding include paths to CLI testrunner
- Ngôn ngữ chính
- JavaScript
- Star
- 1.9k
- Fork
- 359
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I think it would be useful to have something like --include=PATH for the CLI testrunner. That way you can setup your testsuite without having to know about the actual location of the test suite in the directory structure. The call to the CLI testrunner then can take care of setting up the enviroment using --include. No need to repeat
```
require =("../lib/LibrarySubjectToBeTested");
```
but do
```
require('LibrarySubjectToBeTested");
```
and simply call
```
nodeunit --include=../lib/
```
I implemented a patch that would add this functionality to the testrunner. Have a look at it: 1db0b284d70829d4fe5f8a1fe20274562cdc5bd8
Please let me know what you think and if there's anything I missed. If you like it, feel free to pull it in.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng việc xem xét commit 1db0b284d70829d4fe5f8a1fe20274562cdc5bd8 và entry point của CLI testrunner. Kiểm tra cách tùy chọn được đề xuất --include=PATH thiết lập môi trường tra cứu module, sau đó chạy bộ test hiện có; được xem là hoàn tất khi nodeunit --include=../lib/ cho phép require LibrarySubjectToBeTested mà không cần đường dẫn tương đối.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js
- Lĩnh vực
- cli, testing-qa
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100