I have been struggling with the issue of Integration Testing within packages for some time. Basically the core question I have is:
How is it possible to a develop framework agnostic package, with repositories that have integration test coverage?
- Would I not have to bootstrap a whole Laravel environment to do this?
- How can I have green Travis CI without having Laravel framework as a dependancy?
- Having Laravel as a dependancy, even dev, is against my coding morals
- I should not have to install a package that bootstraps Laravel just for my testing, so please don't offer one.
Previously @JeffreyWay has informed me that mocked models are brittle, and I believe he is right for many reasons.
In my opinion it just keeps pointing back to the core weakness of active record: entities are 100% coupled to the ORM, true repositories are impossible.
What do I do, how do I move forward, what are my choices?
Aucun commentaire:
Enregistrer un commentaire