Skip to content

Commit

Permalink
Instruct people to set up the test fixtures.
Browse files Browse the repository at this point in the history
This seems like a safer bet then getting the errors.
  • Loading branch information
damontgomery committed May 3, 2021
1 parent cd9afac commit 91bae6f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README-automated-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,21 @@ Github Workflow is used to test that this package can be installed. See `.github

We are currently running our tests on PHP 7.3, you may encounter problems when running on PHP 7.4.

To run the base PHPUnit tests, which run unit tests against Rectors rules, just run the following:
Set up Drupal integration fixtures.

```
php vendor/bin/phpunit
composer run-script phpunit-drupal8-fixture
```

You will see that some tests were skipped. These are the Drupal integration tests. To run those, run the following commands:
### Running tests locally

```
composer run-script phpunit-drupal8-fixture
vendor/bin/phpunit
```

Now, when you run PHPUnit, the Drupal integration tests will run.
If you did not set up the Drupal integration fixtures, this will produce errors and skip a few of the Drupal integration tests. These errors can be ignored, or you can set up the integration as described above.

```
php vendor/bin/phpunit
```
`DrupalRector\Tests\DrupalIntegrationTest::testIntegration` ... `OutOfBoundsException: Package "rector/rector" is not installed`

### Adding tests

Expand Down

0 comments on commit 91bae6f

Please sign in to comment.