Giter Club home page Giter Club logo

hmrc.customs-declare-exports-movements's Introduction

customs-declare-exports-movements

Build Status Download

This is a placeholder README.md for a new repository

License

This code is open source software licensed under the Apache 2.0 License

Scalastyle

Project contains scalafmt plugin.

Commands for code formatting:

scalafmt        # format compile sources
test:scalafmt   # format test sources
sbt:scalafmt    # format .sbt source

To ensure everything is formatted you can check project using commands below

scalafmt::test      # check compile sources
test:scalafmt::test # check test sources
sbt:scalafmt::test  # check .sbt sources

Principles

Component Tests

Component tests should simple and test the entire stack e.g.

  • Request coming into the service - Using a real HTTP request
  • Data in the DB as a result - Using a real MongoDB
  • Requests to downstream services as a result - Using WireMock

They should also act as a "spec" for our API and send real JSON/XML and verify on real JSON/XML. By the above we mean, dont use Json.toJson(some scala model) to generate your expected payload. Also, dont use TestData helpers to build the requests. If we do this it will mean that we cannot change the signature of the API accidentally without breaking the component tests.

hmrc.customs-declare-exports-movements's People

Contributors

maciejrewera avatar patrykrudnicki avatar bambuchaadm avatar pauloportugal avatar ed0906 avatar janeturner avatar glidester avatar leszeklorek avatar stevesugden avatar hmrc-web-operations avatar mattclark-zerogravit avatar raghu1978 avatar bethany-kish avatar simms11 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.