AmadeusITGroup / kassette

kassette is a development server, used mainly for testing, which proxies requests and is able to easily manage local mocks.
MIT License
9 stars 15 forks source link

Reducing number of files generated by the library #382

Closed randspy closed 2 years ago

randspy commented 2 years ago

Hello,

Currently kassette generates six files from which body.json and data.json are mandatory. It creates huge number of files for certain cases. It is important in a context of storing them in a git repository. We would like to reduce that number.

To have an option of having only one file per message with a possibility of specifying what content should be inside. For example we find content of checksum very useful.

Also going further could also be useful. Like having one file per test.

BR

divdavem commented 2 years ago

Hi @randspy

We have implemented this feature request in #443 The feature is now available in kassette 1.4.0.

It is now possible to store multiple responses in one har file by configuring the following settings:

It is also possible to specify what content should be inside the har file (or in the previous folder format) with the following new settings:

I am now closing this issue, but do not hesitate to contact us if you have any question or feedback regarding this new feature! BR