<!-- 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
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration testing with Spanner emulator and GitHub actions

**[Google Cloud](https://daily.dev/sources/gcp)** · 2 min read · 0 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cloud.google.com/blog/products/databases/spanner-integration-testing-with-the-emulator/>

---

Tags: [#testing](https://daily.dev/tags/testing), [#backend](https://daily.dev/tags/backend), [#github-actions](https://daily.dev/tags/github-actions), [#spanner](https://daily.dev/tags/spanner)

[View this post on daily.dev](https://daily.dev/posts/integration-testing-with-spanner-emulator-and-github-actions-m2r7xvqgb)

```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"}]}
```

