Skip to content

Unit tests runner/coverage calculator on the CLI environment for the Java platform.

License

Notifications You must be signed in to change notification settings

tamada/omelette

Repository files navigation

codebeat badge License Version

Omelette

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

🗣️ 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.

🏃 Usage

omelette version 1.0.0
omelette [OPTIONS] <PROJECT_DIR>
    or
omelette [OPTIONS] -p <PRODUCT_CODE_DIR> -t <TEST_CODE_DIR> [PROJECT_NAME]
OPTIONS
    -c, --classpath <PATH>      specifies classpath list separated with a colon, or defines several options.
    -d, --delete-tempfiles      deletes temporary files after running.
    -e, --excludes <REGEXP>     specifies target exclusion rules for unit tests. Default is "" (no filtering).
    -i, --includes <REGEXP>     specifies target inclusion rules for unit tests. Default is "" (no filtering).
    -n, --no-coverage           calculates no coverage of test codes.
    -p, --product-code <DIR>    specifies the directory contains the product codes.
    -t, --test-code <DIR>       specifies the directory contains the test codes.
    -v, --verbose               verbose mode.

    -h, --help                  prints this message.
ARGUMENTS
    PROJECT_DIR                 specifies the directory contains the product codes and the unit test codes.
    PROJECT_NAME                specifies the project name for destination file. Default is "unknown".

💼 Requirements

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

⚓ Install

🍺 Homebrew (macOS)

brew install tamada/brew/omelette

Go lang

go get github.com/tamada/omelette

After downloading omelette, run the following script.

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

🛠️ Build from source

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

😄 About

📜 License

Do What The F*ck You Want To Public License

License

  • This license permits
    • 👍 Commercial use,
    • 👍 Modification,
    • 👍 Distribution, and
    • 👍 Private use.

👨‍💼 Developers 👩‍💼

❓ Why does the product names omelette?

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

🤝 Attributions

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

About

Unit tests runner/coverage calculator on the CLI environment for the Java platform.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published