assaf / node-replay

When API testing slows you down: record and replay HTTP responses like a boss
http://documentup.com/assaf/node-replay
MIT License
522 stars 107 forks source link

REPLAY=record should only record the first call #164

Open n3ssi3 opened 4 years ago

n3ssi3 commented 4 years ago

Hi there,

I call an API on my dashboard. Each selenium tests log in as a user and from there navigates to the page that needs testing.

While running the tests with REPLAY=record I get multiple times the same API call recoded. I then delete all but one file and then the tests use the already existing fixture.

It would be great that even when running REPLAY=record it would consider the fixtures already created in that same run, to avoid multiple duplicated records.

Cheers,