[vala/wip/valadate: 90/101] Add TestFormat enum



commit 9d707809080fbff23c260322b3a3ecd9a9a85898
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Apr 29 18:00:50 2017 +0200

    Add TestFormat enum

 valadate/testconfig.vala  |    6 ++++++
 valadate/testoptions.vala |    4 +---
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/valadate/testconfig.vala b/valadate/testconfig.vala
index 2064191..054f7c9 100644
--- a/valadate/testconfig.vala
+++ b/valadate/testconfig.vala
@@ -27,6 +27,12 @@ public errordomain Valadate.TestConfigError {
        TEST_PRINTER
 }
 
+public enum Valadate.TestFormat {
+       GNU,
+       TAP,
+       XML
+}
+
 public class Valadate.TestConfig {
 
        public TestOptions options {get;set;}
diff --git a/valadate/testoptions.vala b/valadate/testoptions.vala
index f7a19c2..48557aa 100644
--- a/valadate/testoptions.vala
+++ b/valadate/testoptions.vala
@@ -22,7 +22,6 @@
 public class Valadate.TestOptions {
 
        private static bool _async = true;
-       private static bool _tap;
        private static string _format = "tap";
        private static bool _keepgoing = false;
        private static bool _list;
@@ -49,8 +48,7 @@ public class Valadate.TestOptions {
                { "skip", 's', 0, OptionArg.STRING_ARRAY, ref _skip, "Skip all tests matching", "TESTPATH..." 
},
                { "timeout", 't', 0, OptionArg.INT, ref _timeout, "Default timeout for tests", "MILLISECONDS" 
},
                { "seed", 0, 0, OptionArg.STRING, ref _seed, "Start tests with random seed", "SEEDSTRING" },
-               { "timed", 0, 0, OptionArg.NONE, ref _timed, "Run timed tests", null },                 { 
"tap", 0, 0, OptionArg.NONE, ref _tap, "Output test results using TAP format" },
-               { "tap", 0, 0, OptionArg.NONE, ref _tap, "Output test results using TAP format" },
+               { "timed", 0, 0, OptionArg.NONE, ref _timed, "Run timed tests", null },
                { "testplan", 0, 0, OptionArg.STRING, ref _testplan, "Run the specified TestPlan", "FILE" },
                { "verbose", 0, 0, OptionArg.NONE, ref _verbose, "Run tests verbosely", null },
                { "version", 0, 0, OptionArg.NONE, ref _version, "Display version number", null },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]