Skip to content

Testing Guidelines

Hongliang Xu edited this page Jul 29, 2018 · 2 revisions

Test naming

Tests should have a class name that ends with Test (i.e. ControllerTest) with test methods that start with test (i.e. testManager). Use TestNG annotations (e.g. @Test, @BeforeClass, @BeforeMethod) to indicate test and setUp/tearDown methods.

Test facilities

Use utilities to spawn test fixtures whenever necessary. For example, use ZkStarter and KafkaStarterUtils to start ZooKeeper and Kafka. Put common utilities in uReplicator-Common module for other modules to use. For example, uReplicator-Manager and uReplicator-Controller both use ManagerRequestURLBuilder to build requests.

Clone this wiki locally