Skip to content

Commit

Permalink
Docs folder standardization and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizcmarin committed Apr 15, 2024
1 parent 583c28b commit 2352dce
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 47 deletions.
40 changes: 0 additions & 40 deletions docs/en/internals.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 13 additions & 7 deletions docs/en/testing.md → docs/internals.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Testing
# Internals

This package can be tested globally or individually for each DBMS.

Expand Down Expand Up @@ -28,13 +28,17 @@ in the root directory of each package.

For running the Docker containers, you can use the following command:

```shell
```dockerfile
docker compose up -d
```

## Unit testing

The package is tested with [PHPUnit](https://phpunit.de/).
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```shell
./vendor/bin/phpunit
```

### Global testing

Expand Down Expand Up @@ -68,7 +72,7 @@ Suites available:
- Pgsql
- Sqlite

### Mutation testing
## Mutation testing

The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:
Expand All @@ -87,15 +91,17 @@ The code is statically analyzed with [Psalm](https://psalm.dev/). To run static

## Rector

Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or use either newest or any specific version of PHP:
Use [Rector](https://github.com/rectorphp/rector) to make codebase follow some specific rules or
use either newest or any specific version of PHP:

```shell
./vendor/bin/rector
```

## Composer require checker
## Dependencies

This package uses [composer-require-checker](https://github.com/maglnet/ComposerRequireChecker) to check if all dependencies are correctly defined in `composer.json`.
Use [ComposerRequireChecker](https://github.com/maglnet/ComposerRequireChecker) to detect transitive
[Composer](https://getcomposer.org/) dependencies.

To run the checker, execute the following command:

Expand Down

0 comments on commit 2352dce

Please sign in to comment.