Skip to content
Snippets Groups Projects
Commit 5581e981 authored by Michael Trummer's avatar Michael Trummer
Browse files

Merge branch 'master' of https://git.hsr.ch/git/VoltageDivider

parents 6eaecaa5 8941f0a1
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#generateCoverageView.sh
DIR=$PWD"/build-VoltageDividerTest-Desktop_Qt_5_7_0_GCC_64bit-Debug"
COVFILENAME="coverage.info"
HTMLFOLDER="coverage"
rm -rf "$DIR"/*.gcno
rm -rf "$DIR"/*.gcda
cd "$DIR"
make "$DIR" clean
make "$DIR" all -j4
cd ..
$DIR/VoltageDividerTest
lcov --capture --directory $DIR --output-file $COVFILENAME
lcov --remove $COVFILENAME "ui_*.h" --output-file $COVFILENAME
genhtml --demangle-cpp $COVFILENAME -o $HTMLFOLDER
firefox $HTMLFOLDER"/index.html" &
...@@ -12,6 +12,9 @@ void testGUIInput(const QString& strU1, const QString& strU2, ...@@ -12,6 +12,9 @@ void testGUIInput(const QString& strU1, const QString& strU2,
TEST(VoltageDividerWidgetTest, testVoltageDividerWidget_Success) TEST(VoltageDividerWidgetTest, testVoltageDividerWidget_Success)
{ {
VoltageDividerWidget* vd = new VoltageDividerWidget;
delete vd;
testGUIInput("12", "5", "100", "1000", 12, 5, 100, 1000); testGUIInput("12", "5", "100", "1000", 12, 5, 100, 1000);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment