mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
Description how to run the XSLT.
This commit is contained in:
parent
bc75ba14a3
commit
235869c45a
19
xslt/README.md
Normal file
19
xslt/README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# XSLT port of the Gilded-Rose Kata
|
||||||
|
|
||||||
|
This is a XSLT 1.0 port of the *Gilded-Rose-Kata*.
|
||||||
|
|
||||||
|
## Building and Running
|
||||||
|
|
||||||
|
* [Apache Ant's XSLT task](https://ant.apache.org/manual/Tasks/style.html) is used to run the transformations.
|
||||||
|
* `update_quality.xsl` contains the Gilded Rose logic.
|
||||||
|
* Run Ant in the current folder to transform all files.
|
||||||
|
* `texttest_fixture.xml` is transformed into `texttest_fixture.next_day.xml` with updated values.
|
||||||
|
|
||||||
|
## Unit Test
|
||||||
|
|
||||||
|
[xsltunit](http://xsltunit.org/) is a implementation of xUnit in XSLT.
|
||||||
|
|
||||||
|
* `tst_update_quality.xsl`is the the test (stylesheet).
|
||||||
|
* Run Ant in the current folder to run the tests.
|
||||||
|
* `update_quality.test_result.xml` contains the results and
|
||||||
|
`update_quality.test_result.html` is a readable report.
|
||||||
Loading…
Reference in New Issue
Block a user