-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb167ec
commit 94b2c14
Showing
3 changed files
with
139 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
# Contributing | ||
|
||
Contributions to PeachySQL are welcome and encouraged. | ||
If you'd like to help out, you've come to the right place! | ||
|
||
## Dev environment setup | ||
|
||
1. Clone the repository: `git clone [email protected]:theodorejb/peachy-sql.git` | ||
1. Install and enable PDO driver for one or more of MySQL, PostgreSQL, or SQL Server. | ||
2. Install dependencies: `composer install` | ||
|
||
## Tests | ||
|
||
From a console in the working directory, execute `composer test` to run all unit tests. | ||
|
||
### Database setup | ||
|
||
By default, database tests for MySQL will attempt to run on a database named | ||
`PeachySQL` as the root user with a blank password. To override connection settings, | ||
create a `LocalConfig.php` class in the `test/src` directory which extends `Config` | ||
and overrides the desired methods. | ||
> [!NOTE] | ||
> By default, database tests will attempt to run on a database named `PeachySQL`. | ||
> To override connection settings, create a `LocalConfig.php` class in the `test/src` | ||
> directory which extends `Config` and overrides the desired methods. | ||
## Static analysis | ||
## Formatting and static analysis | ||
|
||
Run `composer analyze` to detect type-related errors before runtime. | ||
* Run `composer cs-fix` to format code following PER Coding Style. | ||
* Run `composer analyze` to detect type-related errors before runtime. |
Oops, something went wrong.