Replies: 8 comments
-
Insomnia Designer can certainly sync with an existing repo, co-exist with other files. There are some edge cases that we need to work through, but the intention is for your code and Insomnia Designer data to co-exist. The Would that suffice as a long-term solution? I'm saying that, I do agree that consuming the v4 export format as a data source for inso is an entirely valid request as well, and we had talked about it in the past but had not implemented. This would be a great short term solution, and it shouldn't be too challenging as the data structures used by the app and inso are very similar. Also, I'd love to understand what your intended workflow is, and maybe what your ideal workflow would be. I'm assuming you have a manual process to export the v4 format file and place it in your repository? |
Beta Was this translation helpful? Give feedback.
-
@develohpanda you are right having |
Beta Was this translation helpful? Give feedback.
-
Great point about the freedom it provides, keen to explore that as you further implement your workflow. Perhaps inso can be extended with some export functionality. What is your reason for needing a local folder containing designer data for inso? Running inso locally, it should detect the app data folder for Designer, and work seamlessly. (And running inso in CI, it would detect the Could there be something I'm missing, in that it's not detecting your local app data folder? |
Beta Was this translation helpful? Give feedback.
-
@develohpanda let me explain my scenario: I am planning to replace it with insomnia designer + inso but having trouble with exporting it and running it on CI |
Beta Was this translation helpful? Give feedback.
-
Totally makes sense. Thanks for explaining your workflow, that's very insightful! I'll add some notes to this issue (when on computer) around how to add v4 support to inso 👍 |
Beta Was this translation helpful? Give feedback.
-
For anybody looking to pick this up, it is a matter of adding a new adapter here for the Insomnia V4 export format, returning a database object in this format: insomnia/packages/insomnia-inso/src/db/index.js Lines 17 to 25 in 19a9d6a An update will be required to insomnia/packages/insomnia-inso/src/db/index.js Lines 48 to 52 in 19a9d6a There will also need to be a global option to specify the export file: insomnia/packages/insomnia-inso/src/cli.js Lines 171 to 178 in 19a9d6a The new option will need to be configurable via a config file: insomnia/packages/insomnia-inso/src/get-options.js Lines 21 to 27 in 19a9d6a There are lots of unit tests set up, so please add to them as well. 😄 |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue(s) - I'd like to use an existing Insomnia Export (with all the tests in it) to run CLI tests with, but inso doesn't allow importing that. |
Beta Was this translation helpful? Give feedback.
-
Unable to use insomnia designer export with CLI
I am planning to use the inso cli to integrate with CI. I don't plan on create a separate git repo and would like to use it along with my existing repo.
Importing insomnia export in the CLI
If the cli can import the insomnia_export file and create the .insomnia folder or directly run it , that can simplify using inso for CI
Beta Was this translation helpful? Give feedback.
All reactions