Codeception / Codeception/module-datafactory

Codeception DataFactory Module will not create a new EntityManager if the original closes.

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

Mô tả

Codeception's DataFactory module contains an ORM module for pushing entities to a database.

I have run into an issue where if the ORM module's EntityManager instance closes in any due to an error (example: failed insert). When the entity manager closes, it stays closed for any future tests that get run.

```
[Doctrine\ORM\ORMException] The EntityManager is closed.
```

While I feel it is important to double check your factory definitions and make sure they are correct. I don't feel that an error in one test should impact the rest of my tests unless they are trying to use the same data.

I would like to to see the DataFactory & Doctrine modules set up to create new instances of an entity manager if the original entity manger happens to close.

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 cách xác định mã của module DataFactory ORM và Doctrine quản lý EntityManager, sau đó tái hiện một insert thất bại khiến nó bị đóng. Theo dõi cách các test tiếp theo tái sử dụng instance đó; được xem là hoàn thành khi một test tiếp theo có thể lấy được một EntityManager hoạt động sau khi instance ban đầu bị đóng, mà không ảnh hưởng đến các test không liên quan.

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
database
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 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
45/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.