File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed
Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1+ DEFAULT_PATH = tests
Original file line number Diff line number Diff line change 44# More details about bashunit installation #
55# see: https://bashunit.typeddevs.com/installation #
66# ###################################################
7- curl -s https://bashunit.typeddevs.com/install.sh | bash -s lib 0.10.0
7+ curl -s https://bashunit.typeddevs.com/install.sh | bash -s lib beta
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Set project root as the working directory
4- cd " $( dirname " $0 " ) "
5-
6- export PROJECT_DIR=" $( realpath " ." ) "
7- export SRC=" ${PROJECT_DIR} /src"
8-
9- lib/bashunit tests/* _test.sh
10-
3+ lib/bashunit tests
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # setUp is called before executing each test function
4- function setUp () {
5- source " ${SRC} /ice_cream_price.sh"
3+ # set_up is called before executing each test function
4+ function set_up () {
5+ source " $( realpath " . " ) /src /ice_cream_price.sh"
66}
77
88function test_ice_cream_price_should_be_100_per_portion_for_low_quantities() {
You can’t perform that action at this time.
0 commit comments