Separate unit and integration tests

This commit is contained in:
Eric Neidhardt 2020-07-17 09:18:32 +02:00
parent 3693783e3c
commit 04f54aca88
3 changed files with 9 additions and 1 deletions

View File

@ -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 # About
This Repo contains golang library to query OpenWetherMaps (<http://openweathermap.org/>) for weather information. This Repo contains golang library to query OpenWetherMaps (<http://openweathermap.org/>) for weather information.

View File

@ -1,3 +1,5 @@
// +build integration
package openweather package openweather
import ( import (

View File

@ -9,7 +9,7 @@ import (
func TestNewQueryForCity(t *testing.T) { func TestNewQueryForCity(t *testing.T) {
// arrange // arrange
apiKey := "testKey" apiKey := "testKey"
location := cityBerlin location := "Berlin,de"
// action // action
q := NewQueryForCity(apiKey, location) q := NewQueryForCity(apiKey, location)
// verify // verify