Skip to content

Comments

Add a non regression test for #2285 #2286#2291

Merged
dunglas merged 1 commit intoapi-platform:2.3from
antograssiot:non-regression-test
Nov 1, 2018
Merged

Add a non regression test for #2285 #2286#2291
dunglas merged 1 commit intoapi-platform:2.3from
antograssiot:non-regression-test

Conversation

@antograssiot
Copy link
Contributor

@antograssiot antograssiot commented Oct 30, 2018

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Edit: Adding test decrease coverage... of course 😈

@antograssiot antograssiot force-pushed the non-regression-test branch 4 times, most recently from f74050e to a3790e3 Compare October 30, 2018 04:50
mkdir -p build/logs/tmp build/cov
for f in $(find features -name '*.feature' -not -path 'features/main/exposed_state.feature' | circleci tests split --split-by=timings); do
_f=${f//\//_}
FEATURE="${_f}" phpdbg -qrr vendor/bin/behat --profile=coverage --suite=default --tags=~@postgres --format=progress --out=std --format=junit --out=build/logs/tmp/"${_f}" "$f"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this change needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(It's probably this change that decreases the coverage)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coverage was already decreasing before this change.
I just saw that it was useless as the tags are defined in the behat.yml.dist
that's basically what I did a while ago, see 71e37cb

I can revert if you prefer

vendor/bin/behat --suite=default --format=progress;
fi
- tests/Fixtures/app/console api:swagger:export > swagger.json && npx swagger-cli validate swagger.json && rm swagger.json
- tests/Fixtures/app/console api:swagger:export --yaml > swagger.yaml && npx swagger-cli validate --no-schema swagger.yaml && rm swagger.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this option needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option is not needed anymore has the generated file is compliant 🤷‍♂️
before schema validation was failling @dunglas

@dunglas dunglas merged commit 647cafe into api-platform:2.3 Nov 1, 2018
@dunglas
Copy link
Member

dunglas commented Nov 1, 2018

Thanks @antograssiot

@antograssiot antograssiot deleted the non-regression-test branch November 2, 2018 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants