blob: cd50669374e8f2b77e9eb7beb63b518ae032cca4 [file] [log] [blame] [view]
Alexander Afanasyevccb373d2016-01-25 11:28:18 -08001# Developer Notes
2
Alexander Afanasyevccb373d2016-01-25 11:28:18 -08003## Compile
4
5To compile:
6
7 ./gradlew assemble
8
9Note: when compiling on Windows, replace `./gradlew` with `gradlew` or `gradlew.bat`.
10
11To build documentation:
12
13 ./gradlew javadoc
14
15To build all artifacts and publish to a local maven repository:
16
17 ./gradlew install
18
19To publish to maven repository `signing.keyId`, `signing.password`, `signing.secretKeyRingFile`,
20`ossrhUsername`, and `ossrhPassword` variables need to be defined in project-specific or
21user-specific `gradle.properties` file. After the variables defined, run the following command
22to build, sign, and upload archives to maven:
23
24 ./gradlew uploadArchives
25
26To get list of other targets, use `./gradlew tasks`.
27
28## Tests
29
30The package contains two types of tests: unit and integration. The integration tests require
31NFD instance to be running locally.
32
33### Unit Tests
34
35To run unit tests:
36
37 ./gradlew test
38
39To run a specific test or test case, use `--tests=<test-name>[.<test-case>]` command-line option. For example,
40
41 ./gradlew test --tests *FaceStatusTest
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -080042 ./gradlew test --tests *FaceStatusTest.testEncode
Alexander Afanasyevccb373d2016-01-25 11:28:18 -080043
44### Integration Tests
45
46To run integration tests
47
48 ./gradlew integrationTest