Coder Social home page Coder Social logo

geoinfo-api's Introduction

Build Status

KSwe SoSe 2017 - Aufgabe 8

Debugging und Continuous Integration.

Vorgehensweise

Das vorliegende Programm enthält eine Klassen JsonWeatherEncoder. Diese Klasse wird mit dem entsprechenden Test JsonWeatherEncoderTest auf Korrektheit geprüft. Allerdings scheint sich ein Fehler eingeschlichen zu haben.

Nutze den Debugger deiner IDE, um Schritt für Schritt durch die Methode public String encode(Weather obj) zu navigieren.

Das Ergebnis der Methode soll dem Folgenden JSON entsprechen:

{
  "city": {
    "name": "Bochum",
    "country": "Germany"
  },
  "phenomena": {
    "temperature": {
      "value": 22.3,
      "unit": "C"
    }
  }
}

Interaktives Debugging

  • identifiziere den Fehler
  • führe Anpassungen durch, damit der Test erfolgreich ausgeführt wird

Code Coverage

  • erstelle die Code Coverage für das gesamte Projekt

Automatisches Testen

Travis-CI ist eine Continuous Integration-Plattform für Open-Source-Projekte. Es bietet die Möglichkeit, GitHub-Projekte automatisiert zu testen.

Sobald ein GitHub-Repository die Datei travis.yml enthält und ein entsprechender Service Hook für das Repository eingerichtet ist, führt Travis automatisch das Kompilieren des Projekts - inklusive Tests - aus.

  • Erstelle einen Fork dieses Repositories
  • Logge dich mit deinem GitHub-Account auf travis-ci.org ein und aktiviere das geoinfo-api Repository
  • Erstelle die Datei .travis.yml (siehe oben) im Hautpverzeichnis des Repositories
  • Commite die .travis.yml und pushe zu GitHub

Travis wird ab nun nach jedem Commit in deinem Repository das Projekt bauen und bei Fehlern eine Meldung versenden.

geoinfo-api's People

Contributors

arnevogt avatar matthesrieke 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.