QuestionQ162

Building and testing applications

You are preparing to add unit tests to your application. You must be able to verify that your subscriber processes published Pub/Sub messages in order. You want the unit tests to remain cost-effective and reliable. What should you do?

  • A Implement a mocking framework.
  • B Create a topic and subscription for each tester.
  • C Add a filter by tester to the subscription.
  • D Use the Pub/Sub emulator.
Explanation

The Pub/Sub emulator provides a local emulation of the Pub/Sub service for application development and testing. It supports publishing, subscribing, and message ordering, allowing tests to exercise ordered subscriber processing without creating and operating production Pub/Sub resources.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!