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 #176

Open
giraud10 opened this issue Oct 17, 2022 · 0 comments · May be fixed by #178
Open

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

giraud10 opened this issue Oct 17, 2022 · 0 comments · May be fixed by #178

Comments

@giraud10
Copy link
Contributor

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 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
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.

1 participant