From 04f54aca88ee93eca5d804ae05eca2bd5e9d8633 Mon Sep 17 00:00:00 2001 From: Eric Neidhardt Date: Fri, 17 Jul 2020 09:18:32 +0200 Subject: [PATCH] Separate unit and integration tests --- README.md | 6 ++++++ api_test.go => integration_test.go | 2 ++ query_test.go | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) rename api_test.go => integration_test.go (98%) diff --git a/README.md b/README.md index 4ed0103..8284e48 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +[![Go Report Card](https://goreportcard.com/badge/github.com/EricNeid/go-openweather?style=flat-square)](https://goreportcard.com/report/github.com/EricNeid/go-openweather) +![Go](https://github.com/EricNeid/go-openweather/workflows/Go/badge.svg) +[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/EricNeid/go-openweather) +[![Release](https://img.shields.io/github/release/EricNeid/go-openweather.svg?style=flat-square)](https://github.com/EricNeid/go-openweather/releases/latest) +[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/EricNeid/go-openweather) + # About This Repo contains golang library to query OpenWetherMaps () for weather information. diff --git a/api_test.go b/integration_test.go similarity index 98% rename from api_test.go rename to integration_test.go index 9a027ea..d18503d 100644 --- a/api_test.go +++ b/integration_test.go @@ -1,3 +1,5 @@ +// +build integration + package openweather import ( diff --git a/query_test.go b/query_test.go index 7c63d9e..80e452a 100644 --- a/query_test.go +++ b/query_test.go @@ -9,7 +9,7 @@ import ( func TestNewQueryForCity(t *testing.T) { // arrange apiKey := "testKey" - location := cityBerlin + location := "Berlin,de" // action q := NewQueryForCity(apiKey, location) // verify