sartography / spiff-arena

SpiffWorkflow is a software development platform for building, running, and monitoring executable diagrams
https://www.spiffworkflow.org/
GNU Lesser General Public License v2.1
44 stars 31 forks source link

Unit Test Framework Issues #1371

Open dinithihj opened 3 weeks ago

dinithihj commented 3 weeks ago
  1. The Unit Test file created using the "Test" option failed for this model https://dev.app.spiff.status.im/process-models/misc:qa:forms:single-file-upload-in-items-test

The output data had a fake process model in the link and the expected data has exact process model

Image

jasquat commented 3 weeks ago

I'm not sure how to make that work. Not only does it require the process model identifier but it also requires the process instance id. Maybe we could add that info to the json files within the test case block so each test case could define their own pi id and pm identifier.

It looks like here is where we are mocking this - https://github.com/sartography/spiff-arena/blob/main/spiffworkflow-backend/src/spiffworkflow_backend/services/process_model_test_runner_service.py#L164-L169

madhurrya commented 1 week ago
  1. I created this unit test from an instance and when I run it, it gives this error. Shouldn't that be added to the test automatically? Is this what you were discussing with Sasha yesterday about xero and oauth? image

https://dev.app.spiff.status.im/process-models/manage-finance:accounts-payable:process-expense-reports:upload-expense-evidence/form/test_upload-expense-evidence.json