Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-56 Add WS unit tests
  3. BB-61

Add /publication/:id unit tests

XMLWordPrintable

      Tests for our web service exist at https://github.com/bookbrainz/bookbrainz-ws/tree/master/tests . We would like to increase the number of unit tests running on our code, to ensure that if something is broken, it gets caught before the code is deployed in the production environment.

      We'd like tests to be added for the following routes in our web service:

      • GET /publication/:id
      • PUT /publication/:id
      • DELETE /publication/:id

      For each endpoint, the following should be tested:

      • That the endpoint works with expected input
      • That the endpoint produces an error response when an invalid ID is passed
      • That single errors (eg. invalid data type) in any data fields cause error responses
      • That missing data is handled correctly (either ignored or results in an error response)

            stanislas Stanisław Szcześniak
            lordsputnik Ben Ockmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                February 2016 (2016-02-09)