Closed saas786 closed 2 years ago
I'm not sure about the qustion.
If you need to do unit tests, then you don't need WordPress, and you can use Brain Monkey indeed.
Here: https://inpsyde.com/en/php-unit-tests-without-wordpress/ there's a (2 parts) blog post about doing that.
If you need integration tests, so you need a full WP installation, you could use WP Starter, but not sure that's the best thing to do. You can look here: https://github.com/inpsyde/Wonolog/tree/2.x/tests/integration for example of integration tests which are automated via docker-compose. See:
There no WP Starter is used because it is easier to make use of ready-made containers.
Sorry to don't be able to provide more info.
Closing as I don't think this is the best place to discuss this.
Note: I am just getting started with PHPUnit integration with my plugin(s). So not well versed.
But as I am already familiar with WPStarter, and I see @gmazzap is involved with: https://github.com/Brain-WP/BrainMonkey so I am assuming you must have utilized this combination?
Any implementation I could see, to get ideas / learn from?