Skip to content

Releases: q231950/the-stubborn-network

Lightening Thunder Otter

12 Jun 19:40
1.0.1
5e193d0
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0...1.0.1

Observing Duckling

14 Feb 19:58
1.0.0
d3b471d
Compare
Choose a tag to compare

Thanks to @Juantri94 we finally made it to a 1.0.0 🥰

Silent Canary

06 Jul 18:51
0.1.3
1ccb836
Compare
Choose a tag to compare

Thanks for yet another improvement @osrufung 😍

Rapid Sloth

11 Jun 18:49
62872b5
Compare
Choose a tag to compare

Changes the way an http body is considered to be equal to another one in case it's both json containing the same keys and values.

Checkout this test for the new behaviour: https://github.com/q231950/the-stubborn-network/blob/main/Tests/StubbornNetworkTests/URLRequestMatcherTests.swift#L111-L125.

0.1.1

26 Jan 12:53
Compare
Choose a tag to compare

Proper CombinedStubSource

This release is a minor improvement that corrects the CombinedStubSource behaviour to properly aggregate its children's recordMode.

0.1.0

25 Jan 12:49
20e0ef8
Compare
Choose a tag to compare

Cocoapods and Multiple Similar Requests

This release incorporates support to record the same request multiple times. If the same request (a duplicate) gets send multiple times the PersistentStubSource will record it as 2 distinct entries in the resulting stub file.

Here is a test that showcases the result of the change.

When serving requests The Stubborn Network consumes available stubs for a given request. This means that if the same request was stubbed 2 times it may be requested later on 2 times - a third request will not be served as a stub any more.

An additional change is support for Cocoapods.

Bond.

18 Apr 14:35
Compare
Choose a tag to compare

The biggest change in this release is the way the stubbing mechanism intercepts requests to return recorded responses. A The Stubborn Network URLProtocol is now applied to your URLSession's configuration instead of subclassing a URLSession. Stubs are now recorded automatically when a test doesn't have corresponding stubs. Besides that some improvements were made to give more control over the request matching of outgoing requests and available stubs.

  • set The Stubborn Network URLProtocol to your URLSession instead of subclassing one
  • stubs are recorded automatically (record modes are not needed any more)
  • request bodies are now stored in the stubs
  • allow for request matching options from .lenient to .strict and anything in between
  • during recording successive, similar requests will now respond with the original server response instead of playing back a initially recorded response

Thanks to the members of Cocoaheads Hamburg and the iOS community for their input for this release.

New Record Mode and Body Control

24 Nov 17:49
bb842b2
Compare
Choose a tag to compare

This release is giving a lot more control over the stubs' request and response body data. It is now possible to specify exactly what gets stored into a stub and what doesn't. For example credentials could be filtered out of the body data of a request before being stored as a stub. Another great feature is the ability to modify a response's data just before it gets delivered - if you ever had the need to adjust time stamps so that the stubs will be accepted by your app - now you can! As a hygiene factor this release gets rid of all linter warnings of the project 🧼

A new record mode allows to record only new requests and new stubs. This mode will improve the experience when adding new UITests a lot. No more stashing of the record mode after adding your new tests 😃

Test coverage is up to 89.7% which should give a lot of confidence for working on the open issues.

0.0.5

18 Oct 14:32
8e73029
Compare
Choose a tag to compare
Remove the closure from the public API and return a `StubbornURLSessi…

0.0.4

12 Oct 12:31
b6ec081
Compare
Choose a tag to compare
Correct usage in readme (#14)