2

I want to run my main application Codeception tests and have it automatically go through the tests provided by 3rd party modules (assuming they come with their own Codeception configurations) installed through composer (which means they are living in the vendor/ folder).

I don't know how this can be done. Do I need to provide some kind of Codeception run parameters? Do I have to modify the bootstrap files? Does Codeception even support something like this?

mae
  • 14,947
  • 8
  • 32
  • 47

1 Answers1

0

Codeception can include other test suites by using include setting in codeception.yml

Documentation: http://codeception.com/docs/08-Customization

Example:

include:
  - vendor/vendor1/lib1
  - vendor/vendor1/lib2
  - vendor/vendor2/lib3
Naktibalda
  • 13,705
  • 5
  • 35
  • 51
  • This works. But it always runs the tests after the ones from the root `codeception.yml`. Do you happen to know of any way to execute the included ones first? – mae Nov 26 '17 at 06:43
  • the test should be like that, all must be tested so that no errors occur in the application as a whole. If you are making one tester and whether the tester is running well or not, you only comment on the unused lines in "include:". – Surya Sheillendra Apr 08 '19 at 04:38