Maven: The De Facto Build Tool for JVM Projects

Install # on Mac OS X $ brew install maven $ brew install maven-completion ref: https://maven.apache.org/index.html Commands # create project: interactive mode $ mvn archetype:generate \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DinteractiveMode=true # create project: non-interactive mode $ mvn archetype:generate \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DinteractiveMode=false \ -DgroupId=ws.vinta.pangu \ -DartifactId=pangu # download dependencies $ mvn dependency:copy-dependencies # download dependencies to… Read More

coverage.py: Python code coverage

coveralls.io 跑 python project 的覆蓋率就是用 coverage.py nose 也是用 coverage.py 基本上 Python 社群幾乎都是用這個 ref: http://nedbatchelder.com/code/coverage/ http://www.cnblogs.com/coderzh/archive/2009/12/01/1614874.html Install $ pip install coverage Configuration in .coveragerc [run] branch = True source = email_confirm_la omit = email_confirm_la/migrations/* email_confirm_la/south_migrations/* email_confirm_la/tests/* [run] 底下的 include 和 omit 是用來指定 filename pattern 而 source 是用來指定 package 或目錄 omit 是「忽略」的意思 ref: http://nedbatchelder.com/code/coverage/config.html Usage # 會自動套用當前目錄下的… Read More