mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Denys Vuika
parent
c954b2f815
commit
073311185f
18
lib/config/create-coverage-index.sh
Executable file
18
lib/config/create-coverage-index.sh
Executable 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
|
Reference in New Issue
Block a user