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 0a994a6 commit 58e6f51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dots-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
chmod +x ./bin/basex &&
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
./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
1 change: 0 additions & 1 deletion tests/deploimentTests.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ declare %unit:test function deployTest:check-boolean-response($returned) {
unit:assert-equals($r, $expected)
};


(: Tests de project_db_init :)
declare function deployTest:getNumberResources() {
let $collections :=
Expand Down
2 changes: 1 addition & 1 deletion tests/launcher.xq
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import module namespace deployTest = "https://github.com/chartes/dots/deploiment
(: 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()), "* ✅ total resources successfully counted",
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 58e6f51

Please sign in to comment.