Testing a Víðarr Workflow Locally
To test a Víðarr workflow locally, ensure that you satisfy these requirements:
- Make sure the .sh file created from the instructions provided in the Creating a Development Environment step points to the jars you created in the Installing Víðarr on a Linux Instance step.
- Use the JSON config file generated during that step in the configuration argument of your command.
- Update the
"url"
block to a URL representing your environment, and the"cromwellUrl"
block to your cromwell server’s REST API.
- Update the
- Follow the steps outlined in Testing Workflows to compose a regression test file. This file will be used in the test argument of your command.
- Another option is to use the JSON test file from the empty repository.
- Change the
"metrics_calculate"
,"metrics_compare"
, and"output_metrics"
blocks to your local files cloned from the empty repository. - The
"configuration"
block can point to any local empty text file.
- Change the
- Another option is to use the JSON test file from the empty repository.
- Follow the steps from the vidarr-tools README.md to create a local v.out file that will be used in the workflow argument of your command.
Finally, you have all the necessary files to test a Víðarr workflow locally, and you can run it using this command:
./path/to/.sh_file test --configuration=path/to/config_file --test=path/to/test_file --workflow=path/to/workflow_file