totten / civix

CiviCRM Extension Builder
http://civicrm.org/
Other
56 stars 56 forks source link

tests/e2e - Isolate each call to civix. More representative of real usage #359

Closed totten closed 4 months ago

totten commented 4 months ago

This is an off-shoot of work on #331. Here's the main comment that explains the purpose.


Ah, blerg. There's a test-interaction problem (i.e. tests pass individually but fail in bulk). E2E tests look like this:

   $this->civixGenerateModule(static::getKey(), [
      '--compatibility' => '5.69',
    ]);
    $this->civixGenerateUpgrader();
    $this->civixGenerateEntity('Bread');
    $this->civixGenerateEntity('Sandwich');

So this PR implements the second approach.