Skip to content

Commit f6c0f7b

Browse files
author
abluchet
committed
debug
1 parent 32c69f2 commit f6c0f7b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ install:
4949

5050
script:
5151
- if [[ $coverage = 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-php build/cov/coverage-phpunit.cov; else vendor/bin/phpunit; fi
52-
- if [[ $coverage = 1 ]]; then for f in $(find features -name '*.feature'); do FEATURE=${f//\//_} phpdbg -qrr vendor/bin/behat --format=progress --profile coverage $f || exit $?; done; else vendor/bin/behat --format=progress; fi
52+
- if [[ $coverage = 1 && $postgres != 1]]; then for f in $(find features -name '*.feature'); do FEATURE=${f//\//_} phpdbg -qrr vendor/bin/behat --format=progress --profile coverage $f || exit $?; done; else vendor/bin/behat --format=progress; fi
53+
- if [[ $postgres = 1]]; then vendor/bin/behat; fi
5354
- if [[ $coverage = 1 ]]; then phpdbg -qrr phpcov.phar merge --clover build/logs/clover.xml build/cov; fi
5455
- tests/Fixtures/app/console api:swagger:export > swagger.json && swagger validate swagger.json && rm swagger.json
5556
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi

features/doctrine/numeric_filter.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Feature: Numeric filter on collections
77
Scenario: Get collection by id equals 9.99 which is not possible
88
Given there is "30" dummy objects
99
When I send a "GET" request to "/dummies?id=9.99"
10-
Then the response status code should be 200
10+
Then print last JSON response
11+
And the response status code should be 200
1112
And the response should be in JSON
1213
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
1314
And the JSON should be valid according to this schema:

features/doctrine/search_filter.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Feature: Search filter on collections
1818
Scenario: Test #944
1919
Given there is a DummyCar entity with related colors
2020
When I send a "GET" request to "/dummy_cars?colors.prop=red"
21-
Then the response status code should be 200
21+
Then print last JSON response
22+
And the response status code should be 200
2223
And the JSON should be equal to:
2324
"""
2425
{

0 commit comments

Comments
 (0)