Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Things the published package doesn't need to run the tests or show their results. Everything
# else ships; note that having this file means .gitignore is no longer consulted.

# the annotated spec's build inputs (the built page and its assets ship)
/spec/Makefile
/spec/*.xml
/spec/lib/

# the Docker image's build files; test-docker.sh pulls the image instead
/docker/

# repository tooling
/.editorconfig
/.github/
/CNAME

# local state
/server.pid
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Therefore, if you believe a test should change (based upon common behaviour or y

## Installation

The tests require a recent version of [NodeJS](https://nodejs.org/) (14.8.0 or greater), which includes the `npm` package manager.
The tests require a recent version of [NodeJS](https://nodejs.org/) (22.19.0 or greater), which includes the `npm` package manager.

To install the most recent source from GitHub (*recommended; things are moving fast*):

Expand All @@ -54,7 +54,7 @@ Alternatively, for the most recent release:

> npm i --legacy-bundling http-cache-tests

Note that the version in the registry is not necessarily up-to-date.
Note that the version in the registry is not necessarily up-to-date. The package has what you need to run the server, the command-line client, the browser tests and the scripts below, and to view results locally (`index.html`, the `results` directory and the annotated specification), but not the Docker image's build files or the specification's sources; the scripts that save results create a `results` directory if there isn't one.


## Running tests with scripts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Mark Nottingham",
"license": "BSD-3-Clause",
"engines": {
"node": ">=14.8.0"
"node": ">=22.19.0"
},
"dependencies": {
"liquidjs": "^10.9.2",
Expand Down
1 change: 1 addition & 0 deletions test-browser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function test_browser {

sleep 1
if [ -f "${TARGET}" ] ; then
mkdir -p results
mv "${TARGET}" results/
fi

Expand Down
1 change: 1 addition & 0 deletions test-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function test_proxy {
echo "* ${PKG} $(docker container exec tmp_proxies /usr/bin/apt-cache show ${PKG} | grep Version)"

if [[ -z "${TEST_ID}" ]]; then
mkdir -p results
npm run --silent cli --base=http://localhost:${PROXY_PORT} > "results/${PROXY}.json"
else
npm run --silent cli --base=http://localhost:${PROXY_PORT} --id="${TEST_ID}"
Expand Down
Loading