Skip to content

Developer sees that there is unit test coverage for GTFS Schedule validate #4378

@ohrite

Description

@ohrite

As a developer making changes to the GTFS Schedule validation logic,
When I make a breaking behavior change,
I can run pytest and see a corresponding failure message


Notes:

  • This validation logic relies on a script in the jobs/ directory, look at the prior example of testing the GTFS-RT Typer app
  • Do not test the inside of the space capsule https://speakerdeck.com/skmetz/magic-tricks-of-testing-railsconf
  • The result artifact should be in a predictable location, and containing the same information, given the inputs
  • If your test depends on fixture data, such as a file at a specific location, make sure it’s there in setup
  • More integration is better than less integration
  • Use pytest’s VCR plugin to capture network traffic, but configure it to ignore authentication

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions