Generate Tests Skill
Instructions
Step 1: Generate test-data.json
- •Read
/automation/temp/parsed-issue.json. - •Extract the
uplinkDataexamples. - •Format as a
testCasesarray in JSON. - •Call
save_and_register("/profiles/{vendor}/tests/test-data.json", content).
Step 2: Generate expected-output.json (NO Mental Math)
- •DO NOT try to calculate the output yourself.
- •Call
run_generate_expected_output_script(profile_path):- •
profile_path: The virtual path to the YAML you just generated (e.g.,/profiles/Senso8/Senso8-LRS20100.yaml).
- •
- •This script will execute the actual JavaScript codec logic and create the
expected-output.jsonfile.
Step 3: Registration
- •Since the script created the file, you must register it.
- •Call
register_generated_file("/profiles/{vendor}/tests/expected-output.json").
Important Notes
- •Calculating hex outputs manually is FORBIDDEN. Use the script.