diff --git a/test_report/prepare.js b/test_report/prepare.js index 7d50a37..64918a0 100644 --- a/test_report/prepare.js +++ b/test_report/prepare.js @@ -2,18 +2,16 @@ import fhirpath from 'fhirpath' import fs from 'fs' import path from 'path' -const CONTENT = '../sof-tests/' -const files = fs.readdirSync(CONTENT) +const CONTENT = '../tests/'; +const files = fs.readdirSync(CONTENT); const allResults = [] await Promise.all( files.map(async (file) => { - if (path.extname(file) !== '.json') return - let testData - let validate - testData = JSON.parse(fs.readFileSync(CONTENT + file)) - allResults.push(testData) + if (path.extname(file) !== '.json') return; + const testData = JSON.parse(fs.readFileSync(CONTENT + file)); + allResults.push(testData); }) ) -fs.writeFileSync('public/tests.json', JSON.stringify(allResults, null, " ")) +fs.writeFileSync('public/tests.json', JSON.stringify(allResults, null, " ")); diff --git a/test_report/public/implementations.json b/test_report/public/implementations.json deleted file mode 120000 index cb239bd..0000000 --- a/test_report/public/implementations.json +++ /dev/null @@ -1 +0,0 @@ -implementations.json \ No newline at end of file diff --git a/test_report/public/implementations.json b/test_report/public/implementations.json new file mode 100644 index 0000000..f452d30 --- /dev/null +++ b/test_report/public/implementations.json @@ -0,0 +1,29 @@ +[ + { + "name": "Ref.Impl", + "url": "https://github.com/FHIR/sql-on-fhir-v2", + "description": "Official reference implementation in JavaScript", + "testResultsUrl": "https://fhir.github.io/sql-on-fhir-v2/test-results.json" + }, + { + "name": "Aidbox", + "url": "https://docs.aidbox.app/storage-1/sql-on-fhir", + "description": "FHIR++ Platform by Health Samurai", + "testResultsUrl": "https://storage.googleapis.com/aidbox-public/sof-test-results.json" + }, + { + "name": "Google", + "url": "TBD", + "description": "TBD" + }, + { + "name": "Pathling", + "url": "TBD", + "description": "TBD" + }, + { + "name": "Grahame Impl", + "url": "TBD", + "description": "TBD" + } +] diff --git a/test_report/src/App.svelte b/test_report/src/App.svelte index a91d999..8220442 100644 --- a/test_report/src/App.svelte +++ b/test_report/src/App.svelte @@ -10,15 +10,12 @@ export let url = ""; onMount(async function () { - console.log('add location change') window.addEventListener('hashchange', function(){ hash = window.location.hash.substring(1); - console.log(hash); }) }) let hash = window.location.hash.substring(1); - console.log(hash); @@ -26,7 +23,7 @@
- + SQL on FHIR 2.0 Playground diff --git a/test_report/src/Impls.svelte b/test_report/src/Impls.svelte index 24ca9cc..2d87adb 100644 --- a/test_report/src/Impls.svelte +++ b/test_report/src/Impls.svelte @@ -15,16 +15,13 @@ onMount(async function () { tests = await load('tests.json'); - console.log('tests',tests); var tmp = await load('implementations.json'); for (const impl of tmp) { if (impl.testResultsUrl){ let res = await load(impl.testResultsUrl); impl.results = res; - console.log('res', res); } } - console.log('impls', tmp); impls = tmp; }); diff --git a/test_report/src/Playground.svelte b/test_report/src/Playground.svelte index c5fd843..35df5e6 100644 --- a/test_report/src/Playground.svelte +++ b/test_report/src/Playground.svelte @@ -74,7 +74,6 @@ function tabelize(v, results) { let columns = get_columns(v) - console.log('?',columns); let rows = [] for( var row of results) { rows.push(columns.map((k)=>{ diff --git a/test_report/src/Tests.svelte b/test_report/src/Tests.svelte index 810addb..24f3ffc 100644 --- a/test_report/src/Tests.svelte +++ b/test_report/src/Tests.svelte @@ -15,11 +15,9 @@ onMount(async function () { menu = await load('tests.json'); impls = await load('implementations.json'); - console.log('?', impls); let hash = window.location.hash.substring(1); current = menu[0]; menu.forEach((x)=> { - console.log('*',hash, x.file); if(x.file == hash) { current = x };