arduino / arduino-connector

Connector to the Arduino Create Cloud and IoT platform
Apache License 2.0
37 stars 24 forks source link

Use build tags to separate functional and integration tests #277

Closed pippolo84 closed 4 years ago

pippolo84 commented 4 years ago

The purpose of this PR is to clearly separate the two classes of tests in the project.

Integration tests requires the interaction with an aws iot mqtt broker, while functional tests relies on a mqtt broker running in a docker container.

Using the build tags "integration" and "functional", respectively, we can clearly separate the code for the tests. Besides, we can run the proper global setup code (see TestMain in handlers_containers_functional_test.go) for the specific class of test we want to execute.