Skip to content

Testnizer v1.4.14

Choose a tag to compare

@apinizerdev apinizerdev released this 08 Jun 12:54
· 19 commits to main since this release

v1.4.14

Scripts can now fetch a token once and reuse it across the whole suite —
insomnia.* / bru.* script APIs are supported, and the Collection Runner
persists the variables your scripts write (Postman "Keep variable values").

  • Insomnia / Bruno scripts: pre-request and test scripts can now use the
    insomnia.* and bru.* objects (aliases of pm.*), so collections imported
    from Insomnia v5 and Bruno run unchanged. Previously
    insomnia.environment.set(...) threw "insomnia is not defined" — the error
    was swallowed and the variable was silently never set, so a token created in a
    setup request never reached later requests and folder Runs failed with 401
    Empty Key!
    (issue #12).
  • Runner — persisted variables: the Collection Runner now honours its
    "Keep variable values" setting. Environment / global variables written by
    scripts during a run (pm.environment.set, insomnia.environment.set,
    pm.globals.set) are saved back to the active environment / project globals
    when the run finishes, so a token fetched once is reused — and refreshed in
    one place — by every later request and by subsequent runs. Request-local
    pm.variables.* stay ephemeral, matching Postman.

Tests: 10 new regression tests (fail-before / pass-after) — 6 Runner cases
(in-run token reuse, insomnia.environment.set, persistence to the database,
update-not-duplicate, side-effect-free when the setting is off, pm.globals.set)
and 4 script-alias cases — bringing the unit suite to 1706.