Browse Source

DX: move report schemas to dedicated dir

Dariusz Ruminski 4 years ago
parent
commit
77fccc63c0

+ 0 - 0
doc/checkstyle.xsd → doc/report-schema/checkstyle.xsd


+ 0 - 0
doc/junit-10.xsd → doc/report-schema/junit-10.xsd


+ 0 - 0
doc/schema.json → doc/report-schema/schema.json


+ 0 - 0
doc/xml.xsd → doc/report-schema/xml.xsd


+ 2 - 2
doc/usage.rst

@@ -22,8 +22,8 @@ The ``--format`` option for the output format. Supported formats are ``txt`` (de
 
 NOTE: the output for the following formats are generated in accordance with XML schemas
 
-* ``junit`` follows the `JUnit xml schema from Jenkins </doc/junit-10.xsd>`_
-* ``checkstyle`` follows the common `"checkstyle" xml schema </doc/checkstyle.xsd>`_
+* ``checkstyle`` follows the common `"checkstyle" xml schema </doc/report-schema/checkstyle.xsd>`_
+* ``junit`` follows the `JUnit xml schema from Jenkins </doc/report-schema/junit-10.xsd>`_
 
 The ``--quiet`` Do not output any message.
 

+ 2 - 2
src/Console/Command/HelpCommand.php

@@ -68,8 +68,8 @@ The <comment>--format</comment> option for the output format. Supported formats
 
 NOTE: the output for the following formats are generated in accordance with XML schemas
 
-* `junit` follows the `JUnit xml schema from Jenkins </doc/junit-10.xsd>`_
-* `checkstyle` follows the common `"checkstyle" xml schema </doc/checkstyle.xsd>`_
+* `checkstyle` follows the common `"checkstyle" xml schema </doc/report-schema/checkstyle.xsd>`_
+* `junit` follows the `JUnit xml schema from Jenkins </doc/report-schema/junit-10.xsd>`_
 
 The <comment>--quiet</comment> Do not output any message.
 

+ 1 - 1
tests/Report/CheckstyleReporterTest.php

@@ -34,7 +34,7 @@ final class CheckstyleReporterTest extends AbstractReporterTestCase
 
     public static function setUpBeforeClass()
     {
-        self::$xsd = file_get_contents(__DIR__.'/../../doc/checkstyle.xsd');
+        self::$xsd = file_get_contents(__DIR__.'/../../doc/report-schema/checkstyle.xsd');
     }
 
     public static function tearDownAfterClass()

+ 1 - 1
tests/Report/JsonReporterTest.php

@@ -153,7 +153,7 @@ JSON;
      */
     private static function assertJsonSchema($json)
     {
-        $jsonPath = __DIR__.'/../../doc/schema.json';
+        $jsonPath = __DIR__.'/../../doc/report-schema/schema.json';
 
         $data = json_decode($json);
 

+ 1 - 1
tests/Report/JunitReporterTest.php

@@ -39,7 +39,7 @@ final class JunitReporterTest extends AbstractReporterTestCase
     {
         parent::setUpBeforeClass();
 
-        self::$xsd = file_get_contents(__DIR__.'/../../doc/junit-10.xsd');
+        self::$xsd = file_get_contents(__DIR__.'/../../doc/report-schema/junit-10.xsd');
     }
 
     public static function tearDownAfterClass()

+ 1 - 1
tests/Report/XmlReporterTest.php

@@ -35,7 +35,7 @@ final class XmlReporterTest extends AbstractReporterTestCase
     {
         parent::setUpBeforeClass();
 
-        self::$xsd = file_get_contents(__DIR__.'/../../doc/xml.xsd');
+        self::$xsd = file_get_contents(__DIR__.'/../../doc/report-schema/xml.xsd');
     }
 
     public static function tearDownAfterClass()