Integration tests with concrete5

Hello folks,

I was trying to include unit tests in my concrete5 application. And I also wanted to test the database calls etc. So I created my own bootstrap file to load all the necessary files to run concrete.
But most of the time I run into problems. For example, the unit test runs, but no error or prompt.

I also noticed that the CLI-runner is a problem here, so I “disabled it” via a post_variable

So I was wondering if maybe my whole approach is stupid and should I handle things differently?
How do you run your unit tests? Do you use integration tests at all?

Thanks in advance!

Core tests are on GitHub and may provide a framework you can build on

1 Like

Thank you ! Works like a charm.