cli-generate-stuffs

Clone or download

Read-only

art #19228 Refacto XmlArtifactGenerator and ArtifactGeneratorCommand

part of story #17159 Generate X artifacts in a given tracker How to test: bin/console generate:artifacts [number of artifacts [tracker id] [optional title] An artifacts.xml should be generated on root directory, should pass RNG schema validation. The XML has been designed to be inserted in a project.xml to import artifacts in your tuleap instance through xml project cli importer. Change-Id: I90012f849fd24cb4514cc556557cf0d5ae246e7c

Modified Files

Name
M src/App/Commands/ArtifactGeneratorCommand.php +3 −1 Go to diff View file
A src/App/Xml/DataGenerator.php +56 −0 Go to diff View file
A src/App/Xml/XmlArtifactBuilder.php +58 −0 Go to diff View file
A src/App/Xml/XmlArtifactFieldFactory.php +97 −0 Go to diff View file
M src/App/Xml/XmlArtifactGenerator.php +14 −178 Go to diff View file
A src/App/Xml/XmlArtifactNodes/Exportable.php +30 −0 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifact.php +58 −0 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifactChangeset.php +89 −0 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactComputedFieldChange.php +66 −0 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactDateFieldChange.php +60 −0 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactGenericFieldChange.php +58 −0 Go to diff View file
A src/App/Xml/XmlArtifactNodes/XmlArtifactFieldChanges/XmlArtifactListFieldChange.php +112 −0 Go to diff View file
M tests/unit/Xml/XmlArtifactGeneratorTest.php +109 −65 Go to diff View file