-
Notifications
You must be signed in to change notification settings - Fork 32
Writing Unit Tests for Twister2
Chathura Widanage edited this page Oct 16, 2019
·
4 revisions
We are using Java JUnit for Unit testing.
We can write a test as a normal JUnit test.
We need to invoke the following command
bazel test --config=ubuntu twister2/comms/tests/java/edu:UnifiedSerializerTest
- Add,
load("//tools/rules:twister2_client.bzl", "twister2_client_common_files")
to the BUILD file. - Add
classpath_resources = twister2_client_common_files(),
to the java_tests rule. - Use ConfigLoader.loadTestConfig()