Skip to content

Commit

Permalink
tests sur la création d'une db projet
Browse files Browse the repository at this point in the history
  • Loading branch information
philippepons committed Mar 14, 2024
1 parent d1a5077 commit 0a994a6
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dots-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
chmod +x ./bin/basexhttp &&
cp -r ../dots/ ./webapp/ &&
./bin/basex ./webapp/dots/scripts/dots_db_init.xq
./bin/basex -b dbName=encpos -b projectDirPath=./webapp/dots/tests/data_test/encpos ./webapp/dots/scripts/project_db_init.xq
- name: Start BaseX backend
run : |
Expand Down
5 changes: 1 addition & 4 deletions tests/launcher.xq
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import module namespace deployTest = "https://github.com/chartes/dots/deploiment

"test init dots db...",
(: create a specific function "checkDotsExists" in deploimentTests.xqm :)
(: if (db:exists("dots"))
then "* ✅ DoTS Db created with success"
else "* ❌ DoTS Db creation failed", :)

(: Check if db dots exists :)
(deployTest:check-boolean-response(db:exists($G:dots)), "* ✅ DoTS Db created with success"),
Expand All @@ -21,7 +18,7 @@ else "* ❌ DoTS Db creation failed", :)
(: Compare new default mapping dots with deult mapping dots model :)
(deployTest:check-boolean-response(deployTest:testMetadataMapping()), "* ✅ DoTS Db default metadata mapping created with success"),

deployTest:checkTotalResources(deployTest:getNumberResources()), "* ✅",
deployTest:checkTotalResources(deployTest:getNumberResources()), "* ✅ total resources successfully counted",

(: deployTest:check-boolean-response(deployTest:testDbSwitch()),
deployTest:check-boolean-response(deployTest:testMetadataMapping()), :)
Expand Down

0 comments on commit 0a994a6

Please sign in to comment.