<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb" -->

---
title: Integration testing with Spanner emulator and GitHub actions
description: Learn how to set up integration testing for Spanner using GitHub Actions and the Spanner emulator. The emulator allows for rapid development of applications...
canonical: https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Integration testing with Spanner emulator and GitHub actions | daily.dev
og:description: Learn how to set up integration testing for Spanner using GitHub Actions and the Spanner emulator. The emulator allows for rapid development of applications...
og:url: https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb
og:image: https://api.daily.dev/og/posts/M2r7XvQgB.png
og:image:alt: Integration testing with Spanner emulator and GitHub actions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Google Cloud](https://daily.dev/sources/gcp)

[Read post](https://api.daily.dev/r/M2r7XvQgB)

# [Integration testing with Spanner emulator and GitHub actions](https://api.daily.dev/r/M2r7XvQgB "Go to post")

Learn how to set up integration testing for Spanner using GitHub Actions and the Spanner emulator. The emulator allows for rapid development of applications backed by a Spanner database without incurring any cloud costs. The post provides step-by-step instructions on setting up the emulator, creating a Spanner instance and database, starting the profile service, running tests, and cleaning up afterward. Additionally, it discusses the limitations of the Spanner emulator compared to an actual Spanner database.

[#testing](/tags/testing "Check all #testing posts")[#backend](/tags/backend "Check all #backend posts")[#github-actions](/tags/github-actions "Check all #github-actions posts")[#spanner](/tags/spanner "Check all #spanner posts")

Jan 26, 2024•2m read time•From [cloud.google.com](https://api.daily.dev/r/M2r7XvQgB "cloud.google.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f8a83a480da3148e1e0a8cbc94594081?_a=AQAEufR)](https://api.daily.dev/r/M2r7XvQgB "Go to post")

14 Impressions

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Google Cloud's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/gcp)](https://daily.dev/sources/gcp)

[Google Cloud](https://daily.dev/sources/gcp "https://daily.dev/sources/gcp")

Google Cloud Platform provides a suite of cloud computing services for building, deploying, and mana... Read more

835 Followers

•

1.4K Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Integration testing with Spanner emulator and GitHub actions","url":"https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb"},"datePublished":"2024-01-26T17:01:59.049Z","dateModified":"2024-05-09T08:58:27.770Z","description":"Learn how to set up integration testing for Spanner using GitHub Actions and the Spanner emulator. The emulator allows for rapid development of applications...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f8a83a480da3148e1e0a8cbc94594081?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f8a83a480da3148e1e0a8cbc94594081?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Google Cloud","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Google Cloud","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/gcp","url":"https://daily.dev/sources/gcp"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,backend,github-actions,spanner","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Google Cloud","item":"https://daily.dev/sources/gcp"},{"@type":"ListItem","position":3,"name":"Integration testing with Spanner emulator and GitHub actions"}]}
```

