项目作者: tamada

项目描述 :
Unit tests runner/coverage calculator on the CLI environment for the Java platform.
高级语言: Go
项目地址: git://github.com/tamada/omelette.git
创建时间: 2020-04-11T13:12:51Z
项目社区:https://github.com/tamada/omelette

开源协议:Do What The F*ck You Want To Public License

下载


codebeat badge
License
Version

Omelette

An agent for running the unit tests on the CLI environment for the Java platform.

:speaking_head: Overview

In the Java platform, we usually run the unit tests through some build tool, such as Maven, Gradle, and so on.
However, it is hard to run the unit tests on the CLI environment.

Calculating test coverages is also complicated for novice programmers.
Since, it requires understanding how to use several libraries (unit test library, coverage measuring library, and the build tool).

Running the unit tests and calculating test coverages usually requires software projects.
It is generally tiresome for calculating test coverages of toy programs with their unit tests.

Therefore, we developed omelette for running unit tests and calculating test coverages in the CLI environment for the Java platform.

:runner: Usage

  1. omelette version 1.0.0
  2. omelette [OPTIONS] <PROJECT_DIR>
  3. or
  4. omelette [OPTIONS] -p <PRODUCT_CODE_DIR> -t <TEST_CODE_DIR> [PROJECT_NAME]
  5. OPTIONS
  6. -c, --classpath <PATH> specifies classpath list separated with a colon, or defines several options.
  7. -d, --delete-tempfiles deletes temporary files after running.
  8. -e, --excludes <REGEXP> specifies target exclusion rules for unit tests. Default is "" (no filtering).
  9. -i, --includes <REGEXP> specifies target inclusion rules for unit tests. Default is "" (no filtering).
  10. -n, --no-coverage calculates no coverage of test codes.
  11. -p, --product-code <DIR> specifies the directory contains the product codes.
  12. -t, --test-code <DIR> specifies the directory contains the test codes.
  13. -v, --verbose verbose mode.
  14. -h, --help prints this message.
  15. ARGUMENTS
  16. PROJECT_DIR specifies the directory contains the product codes and the unit test codes.
  17. PROJECT_NAME specifies the project name for destination file. Default is "unknown".

:briefcase: Requirements

  • Runtime
  • Development
    • Go lang 10.x or later.
    • Dependent Libraries

:anchor: Install

:beer: Homebrew (macOS)

  1. brew install tamada/brew/omelette

Go lang

  1. go get github.com/tamada/omelette

After downloading omelette, run the following script.

  1. cd ~/go/src/github.com/tamada/omelette; ./bin/download_dependencies.sh

:hammer_and_wrench: Build from source

  1. git clone https://github.com/tamada/omelette.git
  2. cd omelette
  3. make

:smile: About

:scroll: License

Do What The F*ck You Want To Public License

License

  • This license permits
    • :+1: Commercial use,
    • :+1: Modification,
    • :+1: Distribution, and
    • :+1: Private use.

:man_office_worker: Developers :woman_office_worker:

:question: Why does the product names omelette?

Because the lunch was omelette, when I developed this product.

:handshake: Attributions

Icons made by Nhor Phai from www.flaticon.com.