Codeception / Codeception/AspectMock

cacheDir cannot be omitted

Đang mở
#181 1 bình luận 3 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
784
Fork
132
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It's stated in documentation that `cacheDir` setting can be skipped: https://github.com/Codeception/AspectMock/blob/master/README.md

------
* `cacheDir` a dir where updated source PHP files can be stored. If this directory is not set, proxie classes will be built on each run. Otherwise all PHP files used in tests will be updated with aspect injections and stored into `cacheDir` path.
------

Although when I don't specify it, I getting the error running the tests:

```
Fatal error: Uncaught RuntimeException: You need to provide valid cache directory for Go! AOP framework.
```

What do I do wrong? Or if it's really required and cannot be omitted, the documentation should be updated.

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

Start with the cacheDir section in README.md and reproduce the reported failure while running the tests without that setting. Compare the documented optional behavior with the configuration path that produces the Go! AOP cache-directory error; done means the behavior and documentation agree about whether cacheDir may be omitted.

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

Đánh giá

Công nghệ
php
Lĩnh vực
testing
Loại issue
Lỗi
Độ 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
32/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.