Skip to content

Commit

Permalink
[doc] Mention schema in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Sep 11, 2017
1 parent 116f218 commit 21388c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/pages/pmd/devdocs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ This is a stripped down example which just contains two test cases.

``` xml
<?xml version="1.0" encoding="UTF-8"?>
<test-data>
<test-data
xmlns="http://pmd.sourceforge.net/rule-tests"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">
<test-code>
<description>ok: no violations</description>
<expected-problems>0</expected-problems>
Expand Down Expand Up @@ -140,6 +143,7 @@ The root element is `<test-data>`. It can contain one or more `<test-code>` and
Each `<test-code>` element defines a single test case. `<code-fragment>` elements are used to share code snippets
between different test cases.

{%include note.html content="The XML schema is available at [rule-tests.xsd](https://github.com/pmd/pmd/blob/master/pmd-test/src/main/resources/rule-tests_1_0_0.xsd)." %}

### `<test-code>` attributes

Expand Down
File renamed without changes.

0 comments on commit 21388c3

Please sign in to comment.