Skip to content

Commit

Permalink
#85 test extra
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 2, 2023
1 parent f3c51f7 commit 7019290
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/steps/test-aggregate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set -o pipefail

temp=$1

repo="foo/bar"
repo="foo/bar test"
dir="${TARGET}/measurements/${repo}/a"
mkdir -p "${dir}"
touch "${dir}/Foo.java.m"
Expand Down
7 changes: 4 additions & 3 deletions tests/steps/test-measure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ set -o pipefail

temp=$1

name="dir (with) _ long & and weird name /Foo.java"
java="${TARGET}/github/foo/bar/${name}"
repo="foo/bar test \"; "
name="dir (with) _ long & and weird ; name /Foo.java"
java="${TARGET}/github/${repo}/${name}"
mkdir -p "$(dirname "${java}")"
echo "class Foo {}" > "${java}"
msg=$("${LOCAL}/steps/measure.sh")
echo "${msg}" | grep "metrics for Foo.java (1/1)" >/dev/null
echo "${msg}" | grep "All metrics calculated in 1 files" >/dev/null
test -e "${TARGET}/measurements/foo/bar/${name}.m"
test -e "${TARGET}/measurements/${repo}/${name}.m"
echo "👍🏻 Measured metrics correctly"

0 comments on commit 7019290

Please sign in to comment.