Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Report
Commits
f36ee2f4
Commit
f36ee2f4
authored
Jul 04, 2017
by
Julien Fastré
Browse files
new architecture for tests
parent
90d74c60
Pipeline
#18409
failed with stages
in 3 minutes and 38 seconds
Changes
9
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
f36ee2f4
...
...
@@ -3,3 +3,4 @@ composer.lock
Tests/Fixtures/App/app/config/parameters.yml
*~
auth.json
/nbproject/private/
\ No newline at end of file
.gitlab-ci.yml
View file @
f36ee2f4
...
...
@@ -5,10 +5,10 @@
before_script
:
-
composer config github-oauth.github.com $GITHUB_TOKEN
-
php -d memory_limit=-1 /usr/local/bin/composer install --no-interaction
-
cp
Tests
/Fixtures/App/app/config/parameters.gitlab-ci.yml
Tests
/Fixtures/App/app/config/parameters.yml
-
php
Tests
/Fixtures/App/app/console --env=test cache:warmup
-
php
Tests
/Fixtures/App/app/console doctrine:migrations:migrate --env=test --no-interaction
-
php
Tests
/Fixtures/App/app/console doctrine:fixtures:load --env=test --no-interaction
-
cp
Resources/test
/Fixtures/App/app/config/parameters.gitlab-ci.yml
Resources/test
/Fixtures/App/app/config/parameters.yml
-
php
Resources/test
/Fixtures/App/app/console --env=test cache:warmup
-
php
Resources/test
/Fixtures/App/app/console doctrine:migrations:migrate --env=test --no-interaction
-
php
Resources/test
/Fixtures/App/app/console doctrine:fixtures:load --env=test --no-interaction
stages
:
-
test
...
...
Resources/test/Fixtures/App/app/autoload.php
0 → 100644
View file @
f36ee2f4
<?php
use
Doctrine\Common\Annotations\AnnotationRegistry
;
use
Composer\Autoload\ClassLoader
;
/** @var ClassLoader $loader */
$loader
=
require
__DIR__
.
'/../../../../../vendor/autoload.php'
;
AnnotationRegistry
::
registerLoader
(
array
(
$loader
,
'loadClass'
));
return
$loader
;
Resources/test/Fixtures/App/app/bootstrap.php.cache
0 → 100644
View file @
f36ee2f4
This diff is collapsed.
Click to expand it.
Resources/test/Fixtures/App/app/config/parameters.yml
0 → 100644
View file @
f36ee2f4
parameters
:
database_host
:
localhost
# database_host: 127.0.0.1
database_port
:
5435
# database_port: 5454
database_name
:
postgres
database_user
:
postgres
database_password
:
postgres
locale
:
fr
secret
:
ThisTokenIsNotSoSecretChangeIt
debug_toolbar
:
true
debug_redirects
:
false
use_assetic_controller
:
true
Resources/test/Fixtures/App/app/console
View file @
f36ee2f4
#!/usr/bin/env php
<?php
use
Symfony\Bundle\FrameworkBundle\Console\Application
;
use
Symfony\Component\Console\Input\ArgvInput
;
use
Symfony\Component\Debug\Debug
;
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
// read https://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup
// for more information
//umask(0000);
set_time_limit
(
0
);
require_once
__DIR__
.
'/../../../bootstrap.php'
;
require_once
__DIR__
.
'/AppKernel.php'
;
use
Symfony\Bundle\FrameworkBundle\Console\Application
;
use
Symfony\Component\Console\Input\ArgvInput
;
use
Symfony\Component\Debug\Debug
;
require
__DIR__
.
'/autoload.php'
;
$input
=
new
ArgvInput
();
$env
=
$input
->
getParameterOption
(
array
(
'--env'
,
'-e'
),
getenv
(
'SYMFONY_ENV'
)
?:
'dev'
);
...
...
apigen.neon
View file @
f36ee2f4
...
...
@@ -6,5 +6,6 @@ source:
exclude:
- vendor/*
- Test*
- Resources/test
title: Chill Report Bundle
composer.json
View file @
f36ee2f4
...
...
@@ -8,6 +8,9 @@
"autoload"
:
{
"psr-4"
:
{
"Chill\\ReportBundle\\"
:
""
}
},
"autoload-dev"
:
{
"classmap"
:
[
"Resources/test/Fixtures/App/app/AppKernel.php"
]
},
"authors"
:
[
{
"name"
:
"Champs-Libres"
,
...
...
@@ -50,7 +53,7 @@
]
},
"extra"
:
{
"app-migrations-dir"
:
"
Tests
/Fixtures/App/app/DoctrineMigrations"
,
"app-migrations-dir"
:
"
Resources/test
/Fixtures/App/app/DoctrineMigrations"
,
"symfony-app-dir"
:
"Tests/Fixtures/App/app"
},
"minimum-stability"
:
"dev"
,
...
...
phpunit.xml.dist
View file @
f36ee2f4
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap=
"./
T
es
ts/bootstrap
.php"
colors=
"true"
<phpunit
bootstrap=
"./
R
es
ources/test/Fixtures/App/app/autoload
.php"
colors=
"true"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals=
"false"
>
...
...
@@ -20,7 +20,7 @@
</whitelist>
</filter>
<php>
<server
name=
"KERNEL_DIR"
value=
"./
Tests
/Fixtures/App/app/"
/>
<server
name=
"KERNEL_DIR"
value=
"./
Resources/test
/Fixtures/App/app/"
/>
<ini
name=
"error_reporting"
value=
"-16385"
/>
</php>
</phpunit>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment