GithubHelp home page GithubHelp logo

weatheringheights's Introduction

Weathering Heights

An app that uses openweather api to show you the daily forecast for your selected location.

Requirements

  • Android Studio 1.4+.
  • Java 1.6+.
  • Target Android SDK 23 (gradle will warn you if you don't have it).

Features

  1. Search by city name or zip code/ postal code
  2. Search by GPS (type lat,lon in the search box e.g. "-33.867, 151.207" and you'll see the an auto suggest searching these GPS coordinates).
  3. Most recent location loads automatically
  4. Save locations automatically. Locations selected are saved as "recent locations".
  5. My locations. Clicking on a recent location will set it as your current location.
  6. Delete location.
  7. Multi-market. Austral, US, Canada support. Includes different color schemes, app names, icons & units (imperial or metric).

Testing

Unit Tests

These cover:

  • Open Weather API Urls are correct and being escaped.
  • Google AutoComplete API Urls are correct and being escaped.
  • DateUtils convert from Epoc to Date correctly.
  • DateUtils return correct short Day format
  • Check whether input is GPS coordinates (used in search to determin whether we need to search by name, zip/post code or GPS coords).

Instrumentation Tests

These have only been testing on 5.1 and 6.0 and as far as I know, the newer espresso style tests will only work on these platforms. In my testing they seem to randomly work on older platforms but aren't reliable.

Instrumentation tests cover:

  • Launching MainActivity and verifying whether empty message is displayed and whether the FAB is on screen.
  • Clicking FAB and validating transition to search screen (Uses espresso)
  • Launching SearchActivity and validating that the AutoCompleteTextView exists and that it's hint is correct.
  • Writing text to AutoCompleteTextView and then testing the clear button the validate it's working.
  • Database write (Database holds recent locations)
  • Database read
  • Database delete
  • Check DateUtils epoc to date conversion
  • Check DateUtils date to day conversion

weatheringheights's People

Watchers

James Cloos avatar Steve avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.