stable

Clone or download

Read-only

Display the steps in commonmark in the test execution panel in Test Management

Part of story #18336 add support of markdown To make an easier the review, the description of the whole test will be done in a dedicated patch This patch take in account the cross reference How to test: - In your artifact add a step with commonmark syntax - Add a second step which will not use the commonmark - Hack the table plugin_testmanagement_changeset_value_stepdef, the description_format AND the expect_results_format should have the value; 'commonmark' - Go in concerned test in the Test Management service => The commonmark step should be displayed in markdown and if there are cross reference, they should also be displayed => There is no functionnal change for the others steps type. - Go in the API Explorer and test a route which use the step definition representation. (i.e /testmanagement_execution/:id) => The step definition representation of the commonmark should contains the new 'commonmark' key for the "description" and "expected_results" keys. => The step definition without the commonmark should have the same representation as before Change-Id: I03b303b3f21175491656327537c7081ec3cbda9c

Modified Files

Name
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +6 −2 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentation.php +8 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentationBuilder.php +11 −2 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/StepDefinitionRepresentations/StepDefinitionFormatNotFoundException.php +39 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/StepDefinitionRepresentations/StepDefinitionRepresentation.php +104 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/StepDefinitionRepresentations/StepDefinitionRepresentationBuilder.php +99 −0 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/StepDefinitionRepresentations/StepDefinitionTextField.php +53 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionsResource.class.php +5 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionRepresentationBuilder.php +21 −13 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionsResource.class.php +5 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ProjectResource.class.php +4 −1 Go to diff View file
D plugins/testmanagement/include/TestManagement/REST/v1/StepDefinitionRepresentation.php +0 −84 Go to diff View file
M plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentationTest.php +9 −2 Go to diff View file
A plugins/testmanagement/tests/unit/TestManagement/REST/v1/StepDefinitionRepresentations/StepDefinitionRepresentationBuilderTest.php +182 −0 Go to diff View file
A plugins/testmanagement/tests/unit/TestManagement/REST/v1/StepDefinitionRepresentations/StepDefinitionRepresentationTest.php +103 −0 Go to diff View file