Giter Site home page Giter Site logo

tamada / omelette Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 1.07 MB

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

Home Page: https://tamada.github.io/omelette

License: Do What The F*ck You Want To Public License

Makefile 4.09% Go 95.91%
unittest java junit4 coverage jacoco

omelette's Introduction

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.

omelette's People

Contributors

tamada avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

fossabot

omelette's Issues

Introduce TestRunner interface

There are various unit test runners.
The current implementation supports for running JUnit 4 only, omelet should support various unit test runners.

type Coverger interface {
    CoverageArguments() string
}

type UnitTestRunner interface {
    Name() string
    Run(config *Config, project *Project)
}

type Builder interface {
    Classpath() []string
    ProjectCodesDir() string
    TestCodesDir() string
}

type Config interface {
    
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.