Skip to content
Permalink
Browse files

Move to codeception

  • Loading branch information...
firstred committed Jan 21, 2017
1 parent 1cee6f0 commit 9271c550d2ab790eaa760bc7da2262de37c0f775
Showing with 5,997 additions and 14,515 deletions.
  1. +2 −2 .coveralls.yml
  2. +2 −0 .gitignore
  3. +9 −2 .travis.yml
  4. +3 −0 admin-dev/index.php
  5. +37 −0 codeception.yml
  6. +2 −1 composer.json
  7. +3 −0 index.php
  8. +1 −5 tests/.gitignore
  9. +0 −70 tests/Fake/FakeConfiguration.php
  10. +0 −151 tests/Helper/DatabaseDump.php
  11. +0 −87 tests/Helper/File.php
  12. +0 −97 tests/Helper/Mocks/FakeEntityMapper.php
  13. +0 −74 tests/Helper/Module.php
  14. +0 −107 tests/Helper/ReflexionHelper.php
  15. +0 −63 tests/Integration/Adapter/Adapter_Database_Test.php
  16. +0 −87 tests/Integration/Core/Foundation/Entity/EntityManagerTest.php
  17. +0 −47 tests/Integration/Core/Foundation/Entity/EntityTest.php
  18. +0 −494 tests/Integration/classes/CartGetOrderTotalTest.php
  19. +0 −101 tests/Integration/classes/ConfigurationCoreTest.php
  20. +0 −129 tests/Integration/classes/MediaCoreTest.php
  21. +0 −52 tests/Integration/classes/ShopCoreTest.php
  22. +0 −94 tests/Integration/classes/db/DbTest.php
  23. +0 −57 tests/Integration/classes/module/ModuleGetPossibleHooksListTest.php
  24. +0 −105 tests/Integration/classes/module/ModuleOverrideInstallUninstallTest.php
  25. +0 −80 tests/Integration/classes/module/ModulesInstallUninstallTest.php
  26. +0 −14 tests/TestCase/IntegrationTestCase.php
  27. +0 −97 tests/TestCase/UnitTestCase.php
  28. +0 −35 tests/TestCase/index.php
  29. +0 −46 tests/Unit/Adapter/Adapter_ServiceLocatorTest.php
  30. +0 −103 tests/Unit/Core/Business/Payment/Core_Business_Payment_PaymentOptionTest.php
  31. +0 −419 tests/Unit/Core/Business/Stock/Core_Business_Stock_StockManagerTest.php
  32. +0 −71 tests/Unit/Core/Foundation/Database/Core_Foundation_Database_EntityRepository_Test.php
  33. +0 −83 ...re/Foundation/Database/EntityManager/Core_Foundation_Database_EntityManager_QueryBuilder_Test.php
  34. +0 −131 tests/Unit/Core/Foundation/FileSystem/Core_Foundation_FileSystem_FileSystemTest.php
  35. 0 tests/Unit/Core/Foundation/FileSystem/fixtures/a/a.tmp
  36. 0 tests/Unit/Core/Foundation/FileSystem/fixtures/a/b/b.file
  37. 0 tests/Unit/Core/Foundation/FileSystem/fixtures/toplevel.txt
  38. +0 −205 tests/Unit/Core/Foundation/IoC/Core_Foundation_IoC_Container_Test.php
  39. +0 −18 tests/Unit/Core/Foundation/IoC/Fixtures/ClassDependingOnClosureBuiltDep.php
  40. +0 −13 tests/Unit/Core/Foundation/IoC/Fixtures/ClassWithDep.php
  41. +0 −15 tests/Unit/Core/Foundation/IoC/Fixtures/ClassWithDepAndDefault.php
  42. +0 −10 tests/Unit/Core/Foundation/IoC/Fixtures/CycleA.php
  43. +0 −10 tests/Unit/Core/Foundation/IoC/Fixtures/CycleB.php
  44. +0 −18 tests/Unit/Core/Foundation/IoC/Fixtures/DepBuiltByClosure.php
  45. +0 −7 tests/Unit/Core/Foundation/IoC/Fixtures/Dummy.php
  46. +0 −17 tests/Unit/Core/Foundation/IoC/Fixtures/UnBuildable.php
  47. +0 −152 tests/Unit/classes/CartTest.php
  48. +0 −63 tests/Unit/classes/PrestaShopAutoloadTest.php
  49. +0 −58 tests/Unit/classes/StockManagerCoreTest.php
  50. +0 −203 tests/Unit/classes/ValidateCoreTest.php
  51. +0 −97 tests/Unit/classes/module/ModuleCoreTest.php
  52. +0 −64 tests/Unit/classes/tax/AverageTaxOfProductsTaxCalculatorTest.php
  53. +0 −73 tests/Unit/classes/tax/TaxCalculatorCoreTest.php
  54. +0 −89 tests/Unit/classes/tax/TaxRulesTaxManagerCoreTest.php
  55. +4 −0 tests/_bootstrap.php
  56. +2 −0 tests/_output/.gitignore
  57. +26 −0 tests/_support/AcceptanceTester.php
  58. +26 −0 tests/_support/FunctionalTester.php
  59. +9 −0 tests/_support/Helper/Acceptance.php
  60. +9 −0 tests/_support/Helper/Functional.php
  61. +9 −0 tests/_support/Helper/Unit.php
  62. +26 −0 tests/_support/UnitTester.php
  63. +2,879 −0 tests/_support/_generated/AcceptanceTesterActions.php
  64. +2,252 −0 tests/_support/_generated/FunctionalTesterActions.php
  65. +473 −0 tests/_support/_generated/UnitTesterActions.php
  66. +11 −0 tests/acceptance.suite.yml
  67. +20 −0 tests/acceptance/MyAccountAcceptanceCest.php
  68. +2 −0 tests/acceptance/_bootstrap.php
  69. +0 −28 tests/bootstrap.php
  70. +0 −28 tests/config/config.inc.php
  71. +0 −35 tests/config/index.php
  72. +11 −0 tests/functional.suite.yml
  73. +20 −0 tests/functional/MyAccountCest.php
  74. +2 −0 tests/functional/_bootstrap.php
  75. +0 −36 tests/index.php
  76. +10 −0 tests/integration.suite.yml
  77. +41 −0 tests/integration/ModuleTest.php
  78. +3 −0 tests/integration/_bootstrap.php
  79. +0 −14 tests/module_testing/DummyTest.php
  80. +0 −30 tests/module_testing/bootstrap.php
  81. +0 −69 tests/module_testing/init_module_unit_testing.sh
  82. +0 −4 tests/module_testing/phpunit
  83. +0 −19 tests/phpunit.xml
  84. +0 −4,745 tests/resources/ModulesOverrideInstallUninstallTest/AdminProductsController.php
  85. +0 −183 tests/resources/ModulesOverrideInstallUninstallTest/Cart.php
  86. +0 −12 tests/resources/module/pscsx3241/config.xml
  87. BIN tests/resources/module/pscsx3241/logo.gif
  88. +0 −56 tests/resources/module/pscsx3241/override/classes/Cart.php
  89. +0 −280 tests/resources/module/pscsx3241/override/controllers/admin/AdminProductsController.php
  90. +0 −28 tests/resources/module/pscsx3241/pscsx3241.php
  91. +0 −12 tests/resources/module/pscsx32412/config.xml
  92. BIN tests/resources/module/pscsx32412/logo.gif
  93. +0 −79 tests/resources/module/pscsx32412/override/classes/Cart.php
  94. +0 −4,751 tests/resources/module/pscsx32412/override/controllers/admin/AdminProductsController.php
  95. +0 −28 tests/resources/module/pscsx32412/pscsx32412.php
  96. +9 −0 tests/unit.suite.yml
  97. +43 −0 tests/unit/StockManagerTest.php
  98. +49 −62 tests/{Unit/classes/ToolsCoreTest.php → unit/ToolsTest.php}
  99. +2 −0 tests/unit/_bootstrap.php
@@ -1,2 +1,2 @@
coverage_clover: tests/clover.xml
json_path: tests/coveralls-upload.json
coverage_clover: tests/_output/coverage.xml
json_path: tests/_output/coveralls-upload.json
@@ -67,3 +67,5 @@ themes/community-theme-default/modules/*/mails/*

*sitemap.xml
robots.txt

tests/_output/*
@@ -7,17 +7,24 @@ php:
- 7.1

sudo: false
cache:
directories:
- $HOME/.composer/cache

notifications:
slack: thirtybees:L2Dyesn7En8jZ008IUwCrMnl

before_install:
- php -S 127.0.0.1:8888 -t . >/dev/null 2>&1 &
- phantomjs --webdriver=4444 >/dev/null 2>&1 &
- composer install --prefer-dist --no-interaction --no-progress

install:
- php install-dev/index_cli.php --language=en --country=us --domain=localhost --db_name=tb.unit.test --db_create=1 --name=tb.unit.test --password=123456789
- php install-dev/index_cli.php --language=en --country=us --domain=127.0.0.1:8888 --db_name=tb.unit.test --db_create=1 --name=tb.unit.test --password=123456789

script:
- vendor/bin/phpunit -c tests/phpunit.xml
- vendor/bin/codecept run unit,integration -c . --coverage --coverage-xml
- vendor/bin/codecept run functional,acceptance -c .

after_success:
- php vendor/bin/coveralls -c .coveralls.yml
@@ -28,6 +28,9 @@
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* PrestaShop is an internationally registered trademark & property of PrestaShop SA
*/
if (file_exists('../c3.php')) {
require_once '../c3.php';
}
$timer_start = microtime(true);
if (!defined('_PS_ADMIN_DIR_')) {
@@ -0,0 +1,37 @@
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=tb.unit.test'
user: 'root'
password: ''
populate: false
cleanup: false
reconnect: true
WebDriver:
url: 'http://127.0.0.1:8888'
browser: phantomjs
window_size: 1920x1080
PhpBrowser:
url: 'http://127.0.0.1:8888'
coverage:
enabled: true
remote: false
include:
- classes/*
- controllers/*
low_limit: 30
high_limit: 70
@@ -6,7 +6,8 @@
"require-dev": {
"satooshi/php-coveralls": "^1.0",
"phpunit/phpunit": "~4.8 || ~5.7",
"phake/phake": "@stable"
"phake/phake": "@stable",
"codeception/codeception": "^2.2"
},
"autoload-dev": {
"psr-4": {
@@ -28,6 +28,9 @@
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* PrestaShop is an internationally registered trademark & property of PrestaShop SA
*/
if (file_exists('./c3.php')) {
require_once './c3.php';
}
require(dirname(__FILE__).'/config/config.inc.php');
Dispatcher::getInstance()->dispatch();
@@ -1,5 +1 @@
/composer.phar
/vendor
/composer.lock

tests/_output/*
_output/*

This file was deleted.

This file was deleted.

0 comments on commit 9271c55

Please sign in to comment.
You can’t perform that action at this time.