-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Conversation
dzinpa
commented
Oct 28, 2020
- Added codeception library
- Created simple test
- Added codeception framework
- Created simple test
composer.json
Outdated
"codeception/module-asserts": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"test": ".\\vendor\\bin\\codecept.bat run", |
There was a problem hiding this comment.
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
tests/unit/DbQueryCest.php
Outdated
public function testOrder(UnitTester $I) | ||
{ | ||
$dbOrder = new \CleanBandits\DbQuery\Order\DbOrder(['id','ASC']); | ||
$I->assertSame('0 id,1 ASC',$dbOrder->orderingFormatted()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fromatting issue
README.md
Outdated
@@ -1,2 +1,4 @@ | |||
# Db Query | |||
Simple PHP OOP library for creating database queries. | |||
|
|||
Run tests using: composer test |
There was a problem hiding this comment.
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.
- Updated readme file. - Changed script run command.
codeception.yml-dist
Outdated
@@ -0,0 +1,10 @@ | |||
paths: | |||
tests: tests |
There was a problem hiding this comment.
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.
tests/acceptance.suite.yml-dist
Outdated
@@ -0,0 +1,13 @@ | |||
# Codeception Test Suite Configuration | |||
# | |||
# Suite for acceptance tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for acceptance and functional tests for now
- Updated readme file. - Removed acceptance and functional files - Removed 'dist' files.