Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Behat: Use @reset-schema from EntityContext
Browse files Browse the repository at this point in the history
Instead of clearing the database in the behat.sh script

Revert partially 341a1b7
  • Loading branch information
alexislefebvre committed Nov 6, 2016
1 parent 5480c62 commit 9a24318
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ build:
file: 'coverage-clover'
format: 'php-clover'
-
command: './behat.sh'
command: './vendor/bin/behat'
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install:
- composer self-update
- composer require symfony/symfony:${SYMFONY_VERSION} $DEPENDENCY

script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS && ./behat.sh
script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS && php ./vendor/bin/behat

# Only send code coverage if it has been generated
after_success:
Expand Down
27 changes: 0 additions & 27 deletions Tests/App/console

This file was deleted.

1 change: 1 addition & 0 deletions Tests/Features/Controller/Controller.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@reset-schema
Feature: Test DefaultController

Scenario: Index
Expand Down
1 change: 1 addition & 0 deletions Tests/Features/Controller/ControllerWithFixtures.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@reset-schema
@alice(*)
Feature: Test DefaultController with Fixtures

Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,4 @@ install:
test_script:
- cd c:\projects\asynctweetsbundle
- vendor/bin/phpunit --colors=never
- php Tests\App\console doctrine:database:drop --env=test --force
- php Tests\App\console doctrine:schema:update --env=test --force
- vendor/bin/behat
6 changes: 0 additions & 6 deletions behat.sh

This file was deleted.

1 change: 1 addition & 0 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ default:
contexts:
- 'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Features\Context\FeatureContext'
- Knp\FriendlyContexts\Context\AliceContext
- Knp\FriendlyContexts\Context\EntityContext
- Knp\FriendlyContexts\Context\MinkContext
extensions:
Behat\Symfony2Extension:
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
- php ./vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml
- ./behat.sh
- php ./vendor/bin/behat

0 comments on commit 9a24318

Please sign in to comment.