jqh 4 years ago
parent
commit
846c36b899
3 changed files with 9 additions and 1 deletions
  1. 2 0
      .env.testing
  2. 4 1
      .travis.yml
  3. 3 0
      phpunit.dusk.xml

+ 2 - 0
.env.testing

@@ -13,6 +13,8 @@ DB_DATABASE=laravel
 DB_USERNAME=root
 DB_PASSWORD=
 
+CODECOV_TOKEN=8124bc76-384b-4528-8875-a33ee1e1ee19
+
 BROADCAST_DRIVER=log
 CACHE_DRIVER=file
 QUEUE_CONNECTION=sync

+ 4 - 1
.travis.yml

@@ -62,4 +62,7 @@ before_script:
   - php artisan serve &
 
 script:
-  - php artisan dusk
+  - php artisan dusk --coverage-clover coverage.xml
+
+after_success:
+  - bash <(curl -s https://codecov.io/bash)

+ 3 - 0
phpunit.dusk.xml

@@ -23,4 +23,7 @@
             <directory suffix=".php">./app</directory>
         </whitelist>
     </filter>
+    <logging>
+        <log type="coverage-clover" target="clover.xml"/>
+    </logging>
 </phpunit>