A
A
Andrey2019-05-07 18:22:40
Software testing
Andrey, 2019-05-07 18:22:40

How to test Laravel packages during development?

I know how to write packages for larka (I already did it more than once), I also know and do how to write tests, but I can’t fully figure out how to write tests when developing a package.
Now I have implemented it (as it seems clumsily to me) like this: the larka is deployed, it has a folder with the package, the package has (naturally) composer.json which contains all the dependencies for this package, there is also a vendor folder with downloaded dependencies for package (in addition to the vendor in the project itself). It seems that it was possible to write unit tests (tests, models, helpers, classes, etc., with terminology is still rather weak), but here's how to write tests to check requests (example: go to a page, enter data, click a button, and that's all this is to check whether there is a button, whether there are fields, whether the controller works as it should or not, etc.) I don’t understand at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-05-07
@JhaoDa

https://github.com/orchestral/testbench

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question