From 6aa7878d26cafbf5a6e8eacc5b0ab0ed66d0d085 Mon Sep 17 00:00:00 2001 From: Bob den Os <108393871+BobdenOs@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:57:03 +0100 Subject: [PATCH] test: Remove find workaround (#955) Now that `cds-test` walks symbolic links it is no longer needed to have the `find` workaround. This allows now for simpler test file selection. ``` npm t -w sqlite SELECT.test.js // runs /cds-dbs/sqlite/test/compliance/compliance/SELECT.test.js npm t -w postgres bookshop/read.test.js // runs /cds-dbs/postgres/test/compliance/scenarios/bookshop/read.test.js npm t -w hana sflight // runs /cds-dbs/hana/test/compliance/scenarios/sflight/*.test.js ``` --- hana/package.json | 2 +- postgres/package.json | 3 ++- sqlite/package.json | 2 +- test/find | 2 -- 4 files changed, 4 insertions(+), 5 deletions(-) delete mode 100755 test/find diff --git a/hana/package.json b/hana/package.json index e9ad1a761..44a39d2ef 100644 --- a/hana/package.json +++ b/hana/package.json @@ -16,7 +16,7 @@ "CHANGELOG.md" ], "scripts": { - "test": "(([ -z \"${HANA_HOST}\" ] && npm start) || true) && cds-test $(../test/find)", + "test": "(([ -z \"${HANA_HOST}\" ] && npm start) || true) && cds-test", "test:remote": "cds-test", "start": "npm run start:hce || npm run start:hxe", "start:hce": "cd ./tools/docker/hce/ && ./start.sh", diff --git a/postgres/package.json b/postgres/package.json index 8db248044..b89dfd652 100644 --- a/postgres/package.json +++ b/postgres/package.json @@ -23,7 +23,7 @@ "CHANGELOG.md" ], "scripts": { - "test": "npm start && cds-test $(../test/find)", + "test": "npm start && cds-test", "start": "docker compose -f pg-stack.yml up -d" }, "dependencies": { @@ -59,6 +59,7 @@ }, "postgres": { "impl": "@cap-js/postgres", + "kind": "sqlite", "dialect": "postgres", "vcap": { "label": "postgresql-db" diff --git a/sqlite/package.json b/sqlite/package.json index ef2e91792..21ab91bfa 100644 --- a/sqlite/package.json +++ b/sqlite/package.json @@ -23,7 +23,7 @@ "CHANGELOG.md" ], "scripts": { - "test": "cds-test $(../test/find)" + "test": "cds-test" }, "dependencies": { "@cap-js/db-service": "^1.14.1", diff --git a/test/find b/test/find deleted file mode 100755 index 150882fb1..000000000 --- a/test/find +++ /dev/null @@ -1,2 +0,0 @@ -# /bin/bash -find -L test -type f -regex .*$npm_config_file$npm_config_test\\.test\\.js