[PROPOSAL] export a pimo play sandbox as venom test
- Dominant language
- Go
- Stars
- 43
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
This is a proposal to add link in the pimo play page to export current status as non regression test in venom test.
We could create a drop-down buttons list on the upper right corner (similar to https://jqplay.org/).
Buttons :
Share : copy link
Export as Venom Test

the venom test template is :
```yaml
name: "test generated from pimoplay "
testcases:
- name: declaring cache
steps:
- script: rm -f masking.yml
- script: |-
cat > masking.yml <
EOF
- script: |-
cat > input.jsonl <
EOF
- script: |-
cat > expected.jsonl <
EOF
- script: |-
< input.jsonl pimo > result.jsonl
assertions:
- result.code ShouldEqual 0
- script: |-
diff expected.jsonl result.jsonl
assertions:
- result.code ShouldEqual 0
- result.systemout ShouldBeEmpty
```
- Share Button copy current link into the clipboard.
- Venom Test button download a `pimo-test.yaml` file as a base64 [data url](https://developer.mozilla.org/fr/docs/Web/HTTP/Basics_of_HTTP/Data_URLs)
Contributor guide
Assessment
This issue has not been assessed yet.