Creates a report of the quality of all models within a projects-root e.g. EmbeddedMontiArc / MontiSim / MontiCore.
Each day, Travis automatically calculates the report for EmbeddedMontiArc and MontiSim and uploads it afterwards to gh-pages.
Component Quality : Report for the CoCo tests of all components.
Grammars : Report of all grammars.
Test Quality : Report of all jUnit tests.
-
To add a new Repository Root e.g.
EmbeddedMontiArc, add the following lines to the travis.ymlscript:- -bash ./scripts/gitpull.sh
New_Repository_Root
- -bash ./scripts/gitpull.sh
after success:- -
new_Zip_Var=$(createZipNew_Repository_Root) - OR
- -
new_Zip_Var=$(createGrammarZipNew_Repository_Root)
- -
after success:- -java -jar target/reporting-
current_Version-jar-with-dependencies.jarNew_Repository_Rootoptions-m
- -java -jar target/reporting-
after success:- -bash ./scripts/deploy.sh
oldZipVars$new_Zip_Var
- -bash ./scripts/deploy.sh
- the
optionsare:-ttin order to add the Report for all jUnit tests-tc-zn$newZipVarin order to add the Report for the Coco tests of all components.-svgto also create the visualisation for all components
-grammarin order to add the Report for all grammars-messential : in order to add and not replace the report
-
To create a different Report:
- create a new html file similar to
report/exampleHTML.htmland add it toreport/ - create a new js file similar to
report/js/exampleJS.jsand refer to it in your html file and add it toreport/js/ - generate a new json file similar to
report/data/exampleJSON.jsonand refer to it in your html file and add it toreport/data/ - add your html file in the
deploy.shscript - in order to generate the new json file, there are a few tools inside the project's code:
SearchFiles,ASTHelper,GitHubHelper
- in order to customize your report, there are a few tools inside the javascript code
grouping,floatingHeaderwith group Information,LogMechanicsand achildControl
- for more information take a look at
cocosReport.htmlandcocosReport.js
- create a new html file similar to