# htl-tck **Repository Path**: mirrors_adobe/htl-tck ## Basic Information - **Project Name**: htl-tck - **Description**: HTML Template Language Technology Compatibility Kit - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README HTML Template Language Technology Compatibility Kit ==== The [HTML Template Language](https://docs.adobe.com/docs/en/htl.html "Introduction to the HTML Template Language") (HTL), formerly known as Sightly, has been introduced with [Adobe Experience Manager](http://www.adobe.com/solutions/web-experience-management.html) 6.0 and takes the place of JSP (JavaServer Pages) as the preferred and recommended server-side template system for HTML. This TCK provides a suite of tests meant to certify that an HTL implementation conforms with the official [language specification](https://github.com/adobe/htl-spec). ## How To ### Building the package To build the TCK just run the following command: ```bash mvn clean install ``` This will result in two artifacts being built: 1. `io.sightly.tck-.jar` 2. `io.sightly.tck--standalone.jar` ### Extracting and deploying the test scripts The test files used by the TCK can be extracted using the following commands: ```bash # extracts the test files in the current directory: java -jar io.sightly.tck--standalone.jar --extract # extracts the test files in a specified folder java -jar io.sightly.tck--standalone.jar --extract path/to/folder ``` The extracted files are organised as follows: ```bash testfiles/ ├── definitions # contains JSON files describing the tests ├── output # contains the expected output markup └── scripts # contains the test scripts ``` The TCK assumes the scripts are available at some predefined URLs. The URL at which a test can be found is composed from `/sightlytck`, to which the relative path of script file from `testfiles/scripts` is added. Assuming we have the following structure in `testfiles`: ```bash testfiles/ └── scripts └── exprlang └── operators └── operators.html ``` the URL at which the output of the `operators.html` script is expected to be found is `/sightlytck/exprlang/operators.html`. ### Running the TCK The HTL TCK can be run standalone or as a Maven artifact. Both modes assume that you have a server running where you have deployed the testing scripts. #### Run the TCK as part of the `integration-test` Maven build phase Add the TCK as a `test` dependency to your `pom.xml` file: ```xml io.sightly io.sightly.tck 1.4.5 test ``` The following Java properties need to be set for successfully Running the TCK: ``` io.sightly.tck.serverURL= io.sightly.tck.user= # optional io.sightly.tck.pass= # optional ``` The TCK can then be run during the `integration-test` phase of your Maven project build using the following configuration: ```xml org.apache.maven.plugins maven-failsafe-plugin integration-test verify io.sightly:io.sightly.tck %regex[io.*sightly.*tck.*TestsRunner.*] http://${test.host}:${test.host.port} ``` #### Run the TCK in standalone mode For this mode you need the `io.sightly.tck--standalone.jar` artifact. The standalone mode assumes that you have deployed the test scripts on your platform. The following commands run the TCK: ```bash # run the TCK java -jar io.sightly.tck--standalone.jar --url http://www.example.com # run the TCK on a server that requires Basic authentication java -jar io.sightly.tck--standalone.jar --url http://www.example.com --authUser user --authPass pass ``` In case you need the standalone version of the artifact in a Maven project, you can add the following dependency to your `pom.xml` file: ```xml io.sightly io.sightly.tck 1.4.5 standalone ``` ## Versioning The TCK artifacts use a semantic versioning scheme - `MAJOR.MINOR.PATCH`: * `MAJOR.MINOR` - identify the specification version for which the TCK was built * `PATCH` - identifies the version of the TCK artifact for the corresponding specification version ### Exceptions 1. version 1.4.0 corresponds to version 1.4 of the HTML Template Language Specification