Browse Source

Update test settings

shalvah 4 years ago
parent
commit
afd15ecc42
3 changed files with 8 additions and 6 deletions
  1. 1 1
      .travis.yml
  2. 2 2
      composer.dingo.json
  3. 5 3
      phpunit.xml

+ 1 - 1
.travis.yml

@@ -36,4 +36,4 @@ install:
   - if [[ $SETUP = 'lint' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; composer lint -- --memory-limit 1G; fi
 
 script:
-  - if [[ $SETUP = 'lint' ]]; then exit 0; fi; composer test-ci;
+  - if [[ $SETUP = 'lint' ]]; then exit 0; fi; composer test-parallel-ci;

+ 2 - 2
composer.dingo.json

@@ -59,8 +59,8 @@
         "lint": "phpstan analyse -c ./phpstan.neon src",
         "test": "phpunit --stop-on-failure --group dingo",
         "test-ci": "phpunit --group dingo",
-        "test-parallel": "paratest -p3 --stop-on-failure --parallel-suite --group dingo tests",
-        "test-parallel-ci": "paratest -p3 --parallel-suite --group dingo tests"
+        "test-parallel": "paratest -p4 --stop-on-failure --parallel-suite --group dingo tests",
+        "test-parallel-ci": "paratest -p4 --parallel-suite --group dingo tests"
     },
     "extra": {
         "laravel": {

+ 5 - 3
phpunit.xml

@@ -3,7 +3,7 @@
          backupStaticAttributes="false"
          bootstrap="vendor/autoload.php"
          cacheResult="true"
-         colors="true"
+         colors="false"
          convertErrorsToExceptions="true"
          convertNoticesToExceptions="true"
          convertWarningsToExceptions="true"
@@ -25,11 +25,13 @@
             <file>tests/Unit/RouteMatcherDingoTest.php</file>
             <file>tests/Unit/RouteMatcherTest.php</file>
         </testsuite>
-        <testsuite name="Other Unit Tests">
-            <file>tests/Unit/PostmanCollectionWriterTest.php</file>
+        <testsuite name="Other Unit Tests 1">
             <file>tests/Unit/OpenAPISpecWriterTest.php</file>
             <file>tests/Unit/AnnotationParserTest.php</file>
         </testsuite>
+        <testsuite name="Other Unit Tests 2">
+            <file>tests/Unit/PostmanCollectionWriterTest.php</file>
+        </testsuite>
     </testsuites>
     <filter>
         <whitelist>