Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROPOSAL] export a pimo play sandbox as venom test #144

Open
youen opened this issue Jul 25, 2022 · 2 comments
Open

[PROPOSAL] export a pimo play sandbox as venom test #144

youen opened this issue Jul 25, 2022 · 2 comments
Assignees

Comments

@youen
Copy link
Member

youen commented Jul 25, 2022

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

image

the venom test template is :

name: "test generated  from pimoplay <current url>"
testcases:
- name: declaring cache
  steps:
  - script: rm -f masking.yml
  - script: |-
      cat > masking.yml <<EOF
      <content of the masking cell>
      EOF
  - script: |-
      cat > input.jsonl <<EOF
      <content of the input cell in jsonline format>
      EOF
  - script: |-
      cat > expected.jsonl <<EOF
      <content of the output cell in jsonline format>
      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
@adrienaury
Copy link
Member

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

@laam2022
Copy link
Contributor

laam2022 commented Jul 25, 2022

Examples of DropDown styles:

Example1:
image

Example2:
image

Url link:
https://www.w3schools.com/howto/howto_js_dropdown.asp

@giraud10 giraud10 linked a pull request Jul 27, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants