News for hackers. Stuff that matters.

wojciech_bulaty

Ask HN: Budgeting Website or App

I am looking for a budgeting website and app that allows for: * Zero based, envelope budgeting * Defining multiple bank accounts * Importing transaction history from a CSV/... file for each bank account (no need to connect to my bank) * Automatic recognition of bank statement item categories (i.e. "KFC" should be categorised automatically as "Eating out") * Allows to override automatic bank...

( Read More... | 1 comment | 2 points | on HN )
Re: on Monday January 23, 2023 @08:01AM (#34488264)
You can use #ChatGPT to generate #API tests in #RestAssured
Re:WireMock is a simulator for HTTP-based APIs on Thursday October 14, 2021 @11:50AM (#28865962)
Wiremock is a great tool. If you wanted to see more tools like that for different protocols Wikipedia has list: https://en.wikipedia.org/wiki/Comparison_of_API_simulation_t...
Re:Show HN: A free, open-source, collaborative, mock API on Thursday September 09, 2021 @04:26AM (#28467509)
Here is a list of API mocking tools that covers HTTP but also other protocols, including OSS and commercial software: https://en.wikipedia.org/wiki/Comparison_of_API_simulation_t...
Re:Ask HN: Best way to Mock APIs in 2021? on Friday August 27, 2021 @06:25AM (#28326078)
Here is a list of tools, you can filter by the API protocol you need: https://en.wikipedia.org/wiki/Comparison_of_API_simulation_t...
Re:Tiny API mocking microservice for generating fake JSON data on Thursday January 30, 2020 @10:56AM (#22192266)
Might be worth considering adding your tool to this list https://en.wikipedia.org/wiki/Comparison_of_API_simulation_t...
Re:Testing Microservices: An Overview of 12 Useful Techniques on Wednesday September 11, 2019 @01:41PM (#20942727)
Would be great to hear peoples thoughts.

Are there any techniques missing in the article?

Re:Why a mock doesn’t work on Wednesday August 14, 2019 @07:06AM (#20694276)
Ned's implicit definition of a mock is narrower than the generally accepted one. He actually described a stub created by monkey-patching. A mock allows for call verifications as well.

There are 3 main categories of techniques for managing dependent components used these days:

1. In-process class/method/function mocks or stubs (http://xunitpatterns.com/Mocks,%20Fakes,%20Stubs%20and%20Dum... and https://martinfowler.com/articles/mocksArentStubs.html)

1a. By monkey patching (which is what Ned has demonstrated in his article very well)

2a. By dependency injection

2. Over-the-wire API mocks or stubs (https://en.wikipedia.org/wiki/Comparison_of_API_simulation_t...)

3. Virtual services/simulators (https://en.wikipedia.org/wiki/Comparison_of_API_simulation_t...)

It's worth keeping in mind that all of them are part of a wider group of test doubles: https://www.infoq.com/articles/stubbing-mocking-service-virt...

Other options available for decoupling from test dependencies:

1. In-memory database https://en.wikipedia.org/wiki/In-memory_database

2. Test container https://www.testcontainers.org/

3. Legacy in a box https://www.thoughtworks.com/radar/techniques/legacy-in-a-bo...