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

Commit 9a24318

Browse files
Behat: Use @reset-schema from EntityContext
Instead of clearing the database in the behat.sh script Revert partially 341a1b7
1 parent 5480c62 commit 9a24318

9 files changed

Lines changed: 6 additions & 38 deletions

File tree

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ build:
3030
file: 'coverage-clover'
3131
format: 'php-clover'
3232
-
33-
command: './behat.sh'
33+
command: './vendor/bin/behat'

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install:
3535
- composer self-update
3636
- composer require symfony/symfony:${SYMFONY_VERSION} $DEPENDENCY
3737

38-
script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS && ./behat.sh
38+
script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS && php ./vendor/bin/behat
3939

4040
# Only send code coverage if it has been generated
4141
after_success:

Tests/App/console

Lines changed: 0 additions & 27 deletions
This file was deleted.

Tests/Features/Controller/Controller.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@reset-schema
12
Feature: Test DefaultController
23

34
Scenario: Index

Tests/Features/Controller/ControllerWithFixtures.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@reset-schema
12
@alice(*)
23
Feature: Test DefaultController with Fixtures
34

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,4 @@ install:
3939
test_script:
4040
- cd c:\projects\asynctweetsbundle
4141
- vendor/bin/phpunit --colors=never
42-
- php Tests\App\console doctrine:database:drop --env=test --force
43-
- php Tests\App\console doctrine:schema:update --env=test --force
4442
- vendor/bin/behat

behat.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

behat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ default:
66
contexts:
77
- 'AlexisLefebvre\Bundle\AsyncTweetsBundle\Tests\Features\Context\FeatureContext'
88
- Knp\FriendlyContexts\Context\AliceContext
9+
- Knp\FriendlyContexts\Context\EntityContext
910
- Knp\FriendlyContexts\Context\MinkContext
1011
extensions:
1112
Behat\Symfony2Extension:

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ test:
1111
override:
1212
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
1313
- php ./vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml
14-
- ./behat.sh
14+
- php ./vendor/bin/behat

0 commit comments

Comments
 (0)