This will involve creating a script to:
- get all published rules (this is now changed since rules are associated in github)
read through the sharepoint directory of test data
This part may be difficult because the folder and file structure may be inconsistent. Might involve some reorganization of the folder structures to be consistent or the manual creation of a mapping file.
- execute each rule with the related test data
parse the result data compare the result data with the result.json NOTE: we may need to run a script to ensure result.json in the cdisc-open-rules repo exists and is accurate
for positive test data, there should be at least 1 positive result and no negatiive results. skips can be ignored
for negative test data, there should be at least 1 negative result
- summarize the test results
Depending on runtime, we could run this action on push or create a cron job to run periodically using git actions:
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
This will involve creating a script to:
read through the sharepoint directory of test dataThis part may be difficult because the folder and file structure may be inconsistent. Might involve some reorganization of the folder structures to be consistent or the manual creation of a mapping file.parse the result datacompare the result data with the result.json NOTE: we may need to run a script to ensure result.json in the cdisc-open-rules repo exists and is accuratefor positive test data, there should be at least 1 positive result and no negatiive results. skips can be ignoredfor negative test data, there should be at least 1 negative resultDepending on runtime, we could run this action on push or create a cron job to run periodically using git actions:
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule