Skip to content

Parsing tests #2

@mgoral

Description

@mgoral

Parsing is handled inside Poco::Timer callbacks. Several things should be provided to fully test this area:

  • dummy XMLs (at least 3-4 to handle all testcases)
  • ConnectionFacade mock that will deliver those dummy XMLs instead of downloaded ones

Tests should be a part of a new test suite (as those are rather module tests, not unit tests).

Testcases (minimal test suite):

  1. Adding all new jobs and checking if all of them are present after that operation
  2. Updating added jobs and checking if all jobs were updated correctly
  3. Removing jobs (XML doesn't contain job information that are stored inside a JobManager)
  4. Check handling of incorrect XMLs, empty XMLs etc (after all, user can type in any web address) -- probably will require correction

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions