Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f3e9837
issue #203 try to get first selenium test working in travisCI
michaelgiesler Nov 11, 2016
2e92bd9
issue #203 try to get first selenium test working in travisCI
michaelgiesler Nov 11, 2016
f9bd367
issue #203, selenium tests with phpunit and phantomjs
michaelgiesler Nov 15, 2016
637cb3f
issue #203, implement infrastructure for selenium tests
michaelgiesler Dec 6, 2016
c6a16f0
issue #203, add selenium tests to travis.yml
michaelgiesler Dec 6, 2016
0e634cc
issue #203, adding unittests for selenium fixture
michaelgiesler Dec 6, 2016
4fc5863
issue #203, composer update
michaelgiesler Dec 6, 2016
df931a3
issue #203, update monolog bundle to 3.x
michaelgiesler Dec 6, 2016
77487b3
issue #203, fix window size for selenium tests
michaelgiesler Dec 6, 2016
2e23f10
issue #203, fix window size for selenium tests
michaelgiesler Dec 6, 2016
4e853b3
issue #203, fix window size for selenium tests
michaelgiesler Dec 6, 2016
817eaff
issue #203, debugging visibility issue in travis
michaelgiesler Dec 9, 2016
f916c72
issue #203, debugging visibility issue in travis
michaelgiesler Dec 9, 2016
4a30118
issue #203, debugging visibility issue in travis
michaelgiesler Dec 9, 2016
cf48e0d
issue #203, debugging visibility issue in travis
michaelgiesler Dec 9, 2016
6010532
issue #203, debugging visibility issue in travis
michaelgiesler Dec 11, 2016
812c8d3
issue #203, debugging visibility issue in travis
michaelgiesler Dec 11, 2016
361a2d3
issue #203, debugging visibility issue in travis
michaelgiesler Dec 11, 2016
e76bf57
issue #203, debugging visibility issue in travis
michaelgiesler Dec 11, 2016
a45e376
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
f2a76d8
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
e98b9ba
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
015acc0
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
ca8fb99
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
741602e
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
1daa83b
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
10addb5
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
5b70aec
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
ca79fe1
issue #203, debugging visibility issue in travis
michaelgiesler Dec 12, 2016
b36ae3c
merge from master
michaelgiesler Apr 7, 2017
25a1675
resolve merge conflict
michaelgiesler Apr 7, 2017
8617038
fix typo from merge
michaelgiesler Apr 7, 2017
50fa6b9
change path to console
michaelgiesler Apr 7, 2017
3c1ee49
issue #203, getting first simple selenium test running
michaelgiesler Apr 8, 2017
8f631ce
issue #203, some optimizing in selenium tests
michaelgiesler Apr 8, 2017
aa38f5a
fix path to console
michaelgiesler Apr 11, 2017
e831d1c
issue #203
michaelgiesler Apr 11, 2017
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ script:
- ./www/bin/phpcs --standard=symfony2 www/src
- ./www/bin/phpunit -c www/app/
- php ./scripts/coverage-checker.php www/var/logs/clover.xml 56
- ./scripts/runSeleniumTests.sh
install:
- if [[ $MONGOEXTENSION == "mongo.so" ]]; then composer --working-dir="www" remove
alcaeus/mongo-php-adapter mongodb/mongodb; fi
Expand Down
2 changes: 1 addition & 1 deletion files/nginx/default
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ server {
}

# pass the PHP scripts to FastCGI server listening socket
location ~ ^/(app|app_dev)\.php(/|$) {
location ~ ^/(app|app_dev|app_selenium)\.php(/|$) {
fastcgi_pass unix://var/run/php5-fpm.sock;
fastcgi_keep_conn on;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
Expand Down
16 changes: 16 additions & 0 deletions scripts/runSeleniumTests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

cd ./www/

php bin/console server:start -v
bin/phantomjs --webdriver=8910 --webdriver-loglevel=ERROR &
bin/console assetic:dump --env=selenium
bin/console cache:warmup --env=selenium -q

bin/phpunit -c app/phpunitselenium.xml
RETURNVALUEPHPUNIT=$?

pkill -f 'bin/phantomjs --webdriver=8910'
php bin/console server:stop -q

exit $RETURNVALUEPHPUNIT
3 changes: 2 additions & 1 deletion www/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ public function registerBundles()
new AdminBundle\AdminBundle(),
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
if (in_array($this->getEnvironment(), array('dev', 'test', 'selenium'))) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Apoutchika\LoremIpsumBundle\ApoutchikaLoremIpsumBundle();
$bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
}

return $bundles;
Expand Down
7 changes: 7 additions & 0 deletions www/app/config/config_selenium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
imports:
- { resource: config_dev.yml }
- { resource: parameters_selenium.yml}

web_profiler:
toolbar: false
intercept_redirects: false
15 changes: 15 additions & 0 deletions www/app/config/parameters_selenium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file is auto-generated during the composer install
parameters:
database_host: localhost
database_port: 27017
database_name: dbselenium
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
secret: ThisTokenIsNotSoSecretChangeIt
piwik_host: //piwik.waszulesen.de/
piwik_id: 2
locale: de
features.login_enabled: true
features.login_needed: true
19 changes: 19 additions & 0 deletions www/app/phpunitselenium.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
>
<php>
<server name="KERNEL_DIR" value="../app/" />
</php>

<testsuites>
<testsuite name="Selenium Test Suite">
<directory>../selenium</directory>
</testsuite>
</testsuites>

</phpunit>
8 changes: 6 additions & 2 deletions www/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"symfony/phpunit-bridge": "^3.0",
"escapestudios/symfony2-coding-standard": "~2.0",
"apoutchika/loremipsum-bundle": "dev-master",
"symfony/debug": "3.1.*"
"symfony/debug": "3.1.*",
"facebook/webdriver": "^1.2",
"jakoch/phantomjs-installer": "^2.1",
"doctrine/doctrine-fixtures-bundle": "^2.3"
},
"scripts": {
"post-root-package-install": [
Expand All @@ -47,7 +50,8 @@
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget",
"PhantomInstaller\\Installer::installPhantomJS"
],
"post-install-cmd": [
"@symfony-scripts",
Expand Down
217 changes: 215 additions & 2 deletions www/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading