Skip to content

Commit

Permalink
test fonctionnement CI
Browse files Browse the repository at this point in the history
  • Loading branch information
philippepons committed Mar 7, 2024
1 parent 7ae707c commit 4847626
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dots-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
cd basex
chmod +x bin/basex
- name: Run Initial Test on DTS Endpoints
- name: Run DoTS XQuery Tests
run: |
./basex/bin/basex ./basexhttp
./basex/bin/basex ./tests/launcher.xq
8 changes: 8 additions & 0 deletions tests/launcher.xq
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
xquery version '3.0' ;

import module namespace test = "https://github.com/chartes/dots/tests" at "utilsTest.xqm";


(: :)
test:check-metadata-output()

29 changes: 29 additions & 0 deletions tests/utilsTest.xqm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
xquery version '3.0' ;

module namespace test = "https://github.com/chartes/dots/tests";

declare namespace dc = "http://purl.org/dc/elements/1.1/";
declare namespace dct = "http://purl.org/dc/terms/";

import module namespace G = "https://github.com/chartes/dots/globals" at "../globals.xqm";
import module namespace dots.lib = "https://github.com/chartes/dots/lib" at "../lib/resources_register_builder.xqm";

declare variable $test:dbTestName := "encpos";

(: UtilsTest.xqm
:
: Module pour tester (...)
:)

declare function test:fixture-OK() {
"vador"
};

(: Documentation du test :)
declare %unit:test function test:check-metadata-output() {
let $expected :=
"vador"
return
unit:assert-equals(test:fixture-OK(), $expected)
};

0 comments on commit 4847626

Please sign in to comment.