Skip to content

Commit 52261e6

Browse files
committed
Unit testing.
* Unit testing for neofetch command. * Documentation updated with custom defines * html folder removed from docs folder.
1 parent cb54429 commit 52261e6

File tree

891 files changed

+358
-122950
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

891 files changed

+358
-122950
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ set( SOURCES
4848
src/Commander-Arguments.hpp
4949
#src/Commander-Database.cpp
5050
src/Commander-Database.hpp
51-
src/Commander-Settings.hpp
51+
src/Commander-DefaultSettings.hpp
5252

5353
extras/simulator/Arduino.h
5454
extras/simulator/Print.cpp
@@ -131,7 +131,10 @@ if(RUN_TESTS)
131131
#add_executable( test_commander_commands_system_commands ${SOURCES} ${UNIT_TESTING} extras/tests/testCases/Commander-Commands/System-Commands/test_system_commands.cpp )
132132

133133
# -- Commander-Commands / Memory-Commands --
134-
add_executable( test_commander_commands_memory_commands ${SOURCES} ${UNIT_TESTING} extras/tests/testCases/Commander-Commands/Memory-Commands/test_memory_commands.cpp )
134+
#add_executable( test_commander_commands_memory_commands ${SOURCES} ${UNIT_TESTING} extras/tests/testCases/Commander-Commands/Memory-Commands/test_memory_commands.cpp )
135+
136+
# -- Commander-Commands / Neofetch-Command --
137+
add_executable( test_commander_commands_neofetch_command ${SOURCES} ${UNIT_TESTING} extras/tests/testCases/Commander-Commands/Neofetch-Command/test_neofetch_command.cpp )
135138

136139
endif()
137140

build.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@
152152
quit()
153153

154154

155+
# Check if the build directory exists.
156+
# If not, create it.
157+
if os.path.isdir( rootDirectory + "/" + buildDirectoryName ) == False:
158+
os.mkdir( rootDirectory + "/" + buildDirectoryName )
159+
155160
# We have to change directory to the build directory to make CMake happy.
156161
os.chdir( rootDirectory + "/" + buildDirectoryName )
157162

@@ -416,6 +421,26 @@
416421

417422
print( 'Coverage report data generated here: {:s}'.format( rootDirectory + "/" + buildDirectoryName + "/report/report.html" ) )
418423

424+
425+
# Append some styling to the report css to make it more readable.
426+
427+
styleLines = [
428+
"\n\n/*--- Modified styles ---*/\n"
429+
".no { color: darkorange } /* Name.Constant */\n"
430+
".s { color: darkorange } /* Literal.String */\n"
431+
".sc { color: darkorange } /* Literal.String.Char */\n"
432+
".kt { color: darkorange } /* Keyword.Type */\n"
433+
".o { color: #8bcbff } /* Operator */\n"
434+
".mi { color: #6a81ff } /* Literal.Number.Integer */\n"
435+
".nf { color: #abb8ff } /* Name.Function */\n"
436+
".nc { color: #abb8ff; font-weight: bold } /* Name.Class */\n"
437+
".nn { color: #abb8ff; font-weight: bold } /* Name.Namespace */\n"
438+
]
439+
440+
cssFile = open( rootDirectory + "/" + buildDirectoryName + "/report/report.css", "a")
441+
cssFile.writelines(styleLines)
442+
cssFile.close()
443+
419444
# Copy report data to Doxygen source folder
420445
reportFiles = os.listdir( rootDirectory + "/" + buildDirectoryName + "/report" )
421446
for reportFile in reportFiles:

docs/Style/gcovr/style.css

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -516,78 +516,3 @@ footer
516516
text-align: center;
517517
padding-top: 3px;
518518
}
519-
520-
/* pygments syntax highlighting */
521-
pre { line-height: 125%; }
522-
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
523-
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
524-
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
525-
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
526-
.hll { background-color: #ffffcc }
527-
.c { color: #3D7B7B; font-style: italic } /* Comment */
528-
.err { border: 1px solid #FF0000 } /* Error */
529-
.k { color: #008000; font-weight: bold } /* Keyword */
530-
.o { color: #666666 } /* Operator */
531-
.ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
532-
.cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
533-
.cp { color: #65cabe } /* Comment.Preproc */
534-
.cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
535-
.c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
536-
.cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
537-
.gd { color: #A00000 } /* Generic.Deleted */
538-
.ge { font-style: italic } /* Generic.Emph */
539-
.gr { color: #E40000 } /* Generic.Error */
540-
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
541-
.gi { color: #008400 } /* Generic.Inserted */
542-
.go { color: #717171 } /* Generic.Output */
543-
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
544-
.gs { font-weight: bold } /* Generic.Strong */
545-
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
546-
.gt { color: #0044DD } /* Generic.Traceback */
547-
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
548-
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
549-
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
550-
.kp { color: #008000 } /* Keyword.Pseudo */
551-
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
552-
.kt { color: #cc99cd } /* Keyword.Type */
553-
.m { color: #666666 } /* Literal.Number */
554-
.s { color: #BA2121 } /* Literal.String */
555-
.na { color: #687822 } /* Name.Attribute */
556-
.nb { color: #008000 } /* Name.Builtin */
557-
.nc { color: #0000FF; font-weight: bold } /* Name.Class */
558-
.no { color: #880000 } /* Name.Constant */
559-
.nd { color: #AA22FF } /* Name.Decorator */
560-
.ni { color: #717171; font-weight: bold } /* Name.Entity */
561-
.ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
562-
.nf { color: #98c0e3 } /* Name.Function */
563-
.nl { color: #767600 } /* Name.Label */
564-
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
565-
.nt { color: #008000; font-weight: bold } /* Name.Tag */
566-
.nv { color: #19177C } /* Name.Variable */
567-
.ow { color: #cc99cd; font-weight: bold } /* Operator.Word */
568-
.w { color: #bbbbbb } /* Text.Whitespace */
569-
.mb { color: #666666 } /* Literal.Number.Bin */
570-
.mf { color: #666666 } /* Literal.Number.Float */
571-
.mh { color: #666666 } /* Literal.Number.Hex */
572-
.mi { color: #666666 } /* Literal.Number.Integer */
573-
.mo { color: #666666 } /* Literal.Number.Oct */
574-
.sa { color: #BA2121 } /* Literal.String.Affix */
575-
.sb { color: #BA2121 } /* Literal.String.Backtick */
576-
.sc { color: #BA2121 } /* Literal.String.Char */
577-
.dl { color: #BA2121 } /* Literal.String.Delimiter */
578-
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
579-
.s2 { color: #BA2121 } /* Literal.String.Double */
580-
.se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
581-
.sh { color: #BA2121 } /* Literal.String.Heredoc */
582-
.si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
583-
.sx { color: #008000 } /* Literal.String.Other */
584-
.sr { color: #A45A77 } /* Literal.String.Regex */
585-
.s1 { color: #BA2121 } /* Literal.String.Single */
586-
.ss { color: #19177C } /* Literal.String.Symbol */
587-
.bp { color: #008000 } /* Name.Builtin.Pseudo */
588-
.fm { color: #0000FF } /* Name.Function.Magic */
589-
.vc { color: #19177C } /* Name.Variable.Class */
590-
.vg { color: #19177C } /* Name.Variable.Global */
591-
.vi { color: #19177C } /* Name.Variable.Instance */
592-
.vm { color: #19177C } /* Name.Variable.Magic */
593-
.il { color: #666666 } /* Literal.Number.Integer.Long */

docs/Style/layout.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<tab type="usergroup" visible="yes" url="@ref example_argumentbasic" title="Basic" intro=""/>
1111
</tab>
1212
</tab>
13+
<tab type="usergroup" visible="yes" url="@ref user_settings" title="⚙️ User Settings" intro=""/>
1314
<tab type="modules" visible="yes" title="" intro=""/>
1415
<tab type="namespaces" visible="yes" title="">
1516
<tab type="namespacelist" visible="yes" title="" intro=""/>
264 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)