chore: Download tests to temporary folder.

This commit is contained in:
Ruben Verborgh
2020-10-27 18:51:31 +01:00
committed by Joachim Van Herwegen
parent 78e175f627
commit a141b563e9
6 changed files with 23 additions and 7 deletions

View File

@@ -1,14 +1,25 @@
#!/bin/bash
set -e
# Start server
npm start &
PID=$!
# Initialize tests
pushd test/tmp
rm -rf solid-crud-tests
git clone https://github.com/solid/solid-crud-tests
cd solid-crud-tests
git checkout v0.1.1
npm install
npm ci
# Run tests
export SERVER_ROOT=http://localhost:3000
export ALICE_WEBID_DOC=$SERVER_ROOT/profile.ttl
export ALICE_WEBID=$ALICE_WEBID#me
curl -X PUT $ALICE_WEBID_DOC -d '<#me> <http://www.w3.org/ns/pim/space#storage> </>.'
npm run jest
# Clean up
kill $PID
popd