openT2T / translators

Repository for Open Translators to Things.
http://www.opentranslatorstothings.org
Other
29 stars 27 forks source link

Add "all platform" unit tests #201

Closed danielrischar closed 7 years ago

danielrischar commented 7 years ago

Adds a new set of tests for all platform unit tests, and moves the ValidTranslator, GetPlatform, GetPlatformExpanded to this new group of tests. Any tests that apply to all translators can now go here and will automatically be run in each set of unit tests.

Adds a ton of verification to GetPlatform to ensure that all translators return certain required properties (and found some translators that didn't). This verification will be most useful when developing new translators as a way of ensuring that the schema output meets some minimal requirements.

The tests use snapshots to store the response to getPlatforms based on the testData. If the translator or testData change, the unit test will fail unless the snapshot is also updated, ensuring that any changes to the translation are done intentionally.

Stubs out subscription test methods, which are skipped for now, they'll be expanded on next.

ChuckFerring-zz commented 7 years ago

:shipit:

shalinijoshi19 commented 7 years ago

:shipit: