Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 1.08 KB

CONTRIBUTING.md

File metadata and controls

34 lines (30 loc) · 1.08 KB

开发者文档

项目使用checkstyle作为lint工具。格式参考./config/checkstyle/checkstyle.xml 如果遇到lint错误,可以参考该目录进行修复或者参考命令行提示。 ./java-gm/build/reports/checkstyle/checkstyle.html

gradle

项目使用gradle,请通过gradle clean test来进行单元测试。目前的流程:

gradle clean test --dry-run
:clean SKIPPED
:compileJava SKIPPED
:processResources SKIPPED
:classes SKIPPED
:compileTestJava SKIPPED
:processTestResources SKIPPED
:testClasses SKIPPED
:test SKIPPED

互操作测试

请大家尽量在提交代码前在本地进行互操作认证,步骤如下:

  • gradle clean build
  • cd ${workdir}
  • git clone https://github.com/Hyperledger-TWGC/fabric-gm-plugins
  • cp -f java-gm/*.pem ${workdir}/fabric-gm-plugins/interop/testdata
  • cd ${workdir}/fabric-gm-plugins/interop
  • go test tjjavaImport_test.go
  • go test tjjaveExport_test.go
  • cp -f ${workdir}/fabric-gm-plugins/interop/testdata/*.pem java-gm
  • cd java-gm
  • gradle clean build