tests: add test for --readme option from nitmetrics
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 1 May 2018 15:34:36 +0000 (11:34 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 1 May 2018 19:48:22 +0000 (15:48 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

tests/nitmetrics.args
tests/sav/nitmetrics_args1.res
tests/sav/nitmetrics_args3.res [new file with mode: 0644]

index 9efd294..c4de3fe 100644 (file)
@@ -1,2 +1,3 @@
 --no-colors --all --csv base_simple3.nit -d $WRITE
 --detect-variance-constraints base_ft_detect_variance_constraints.nit
+--readme --csv -d $WRITE test_prog/
index b7fdbd8..05313a1 100644 (file)
@@ -531,6 +531,9 @@ generating module_hierarchy.dot
          std: 0.0
          sum: 1
 
+# ReadMe metrics
+Warning: no source file for `base_simple3`
+
 # Inheritance metrics
 
  ## package base_simple3
@@ -951,4 +954,5 @@ model.html
 module_hierarchy.dot
 nullables/
 package_hierarchy.dot
+readme.csv
 rta/
diff --git a/tests/sav/nitmetrics_args3.res b/tests/sav/nitmetrics_args3.res
new file mode 100644 (file)
index 0000000..8c804fd
--- /dev/null
@@ -0,0 +1,17 @@
+*** METRICS ***
+
+# ReadMe metrics
+Warning: no source file for `excluded`
+
+ ## package test_prog (test_prog/README.md)
+  * has_package 1
+  * has_readme 1
+  * md_lines 12
+  * nb_section 0
+  * md_blocks 14
+  * BlockParagraph 4
+  * BlockUnorderedList 1
+  * BlockListItem 4
+  * SpanCode 4
+  * Image 1
+readme.csv