[ADF-2788] Fix the process service coverage path and config (#4009)

* Fix the process service coverage path and config

* Create a index report page and run the liteserver
This commit is contained in:
Maurizio Vitale
2018-11-27 16:53:32 +00:00
committed by Denys Vuika
parent c954b2f815
commit 073311185f
5 changed files with 50 additions and 34 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
ROOT=./lib/coverage
HTTP="/"
OUTPUT="./lib/coverage/index.html"
RULE=".*\.\(html\)"
echo "<h1>Coverage ADF Reports</h1>" > $OUTPUT
echo "<ul>" >> $OUTPUT
i=0
for filepath in `find "$ROOT" -maxdepth 1 -mindepth 1 -type d| sort`; do
path=`basename "$filepath"`
for i in `find "$filepath" -regex "$RULE" -maxdepth 1 -mindepth 1 -type f| sort`; do
file=`basename "$i"`
echo " <li><a href=\"/$path/$file\">$path</a></li>" >> $OUTPUT
done
done
echo "</ul>" >> $OUTPUT

View File

@@ -0,0 +1,6 @@
{
"port": 4344,
"server": {
"baseDir": "./lib/coverage/"
}
}