mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
test: Add Solid CRUD tests in Travis
This commit is contained in:
committed by
Joachim Van Herwegen
parent
4f69602751
commit
78e175f627
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,3 +13,4 @@ coverage
|
||||
!jest.config.js
|
||||
|
||||
components
|
||||
solid-crud-tests
|
||||
|
||||
@@ -19,6 +19,7 @@ script:
|
||||
- npm run test:unit
|
||||
- npm run test:integration
|
||||
- npm run test:deploy
|
||||
- sh test/surface/run-solid-test-suite.sh
|
||||
|
||||
jobs:
|
||||
allow_failures:
|
||||
|
||||
14
test/system/run-solid-test-suite.sh
Executable file
14
test/system/run-solid-test-suite.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
npm start &
|
||||
PID=$!
|
||||
git clone https://github.com/solid/solid-crud-tests
|
||||
cd solid-crud-tests
|
||||
git checkout v0.1.1
|
||||
npm install
|
||||
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
|
||||
kill $PID
|
||||
@@ -19,6 +19,7 @@
|
||||
"test/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
"node_modules",
|
||||
"test/system"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user