Skip to content

5 codeception framework #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
.classpath
.project
nbproject
vendor/
*.yml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Db Query
Simple PHP OOP library for creating database queries.

Run tests using: composer test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation should be updated properly. Introduce new section Contribution, sub section Development and subsub section Testing.
Need to add description hav to setup testing - e.g. copy codeception.yml-dist to codeception.yml, etc.

10 changes: 10 additions & 0 deletions codeception.yml-dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
paths:
tests: tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file can stay in source as codeception.yml, no need for dist
Basicly easier is ti setup and run tests, than better.

output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
57 changes: 33 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
{
"name": "clean-bandits/db-query",
"description": "Simple PHP OOP library for creating database queries",
"keywords": [
"php",
"oop",
"db",
"query",
"dal"
],
"homepage": "https://github.com/CleanBandits/DbQuery",
"license": "MIT",
"authors": [
{
"name": "Clean Bandits"
"name": "clean-bandits/db-query",
"description": "Simple PHP OOP library for creating database queries",
"keywords": [
"php",
"oop",
"db",
"query",
"dal"
],
"homepage": "https://github.com/CleanBandits/DbQuery",
"license": "MIT",
"authors": [
{
"name": "Clean Bandits"
}
],
"require": {
"php": ">=7.2"
},
"autoload": {
"psr-4": {
"CleanBandits\\DbQuery\\": "src/"
}
},
"require-dev": {
"codeception/codeception": "^4.1",
"codeception/module-asserts": "^1.0.0"
},
"scripts": {
"test": ".\\vendor\\bin\\codecept.bat run",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will work only for windows

"unit": "phpunit"
}
],
"require": {
"php": ">=7.2"
},
"autoload": {
"psr-4": {
"CleanBandits\\DbQuery\\": "src/"
}
}
}

}
Loading