EnglishFrenchSpanish

OnWorks favicon

shunit2 - Online in the Cloud

Run shunit2 in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command shunit2 that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


shunit2 - A unit test framework for shell scripts

SYNOPSIS


shunit2 unitfile

DESCRIPTION


shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is designed
to work in a similar manner to JUnit, PyUnit, etc.. If you have ever had the desire to
write a unit test for a shell script, shUnit2 can do the job.

You can either run shunit2 directly from the commandline and specify the unit file or
directly source the shunit2 executable.

If you directly execute shunit2 and don’t specify a unitfile shunit2 assumes a empty
testfile and will return without an error message.

EXAMPLE


Simple script to test if 1 equals 1

#! /bin/sh
testEquality()
{
assertEquals 1 1
}

# load shunit2
. shunit2

Execute shUnit2 unit tests directly from the commandline

shunit2 /path/to/unit/file

OPTIONS


shunit2 does not support any commandline options at all. You can either source shunit2 to
execute your unit tests or directly run shunit2 as a commandline script.

Use shunit2 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

Ad