[libgames-support] tests: Make developing tests less annoying



commit 7343c6015ef98bfb02ef051a628f5b409b3cfca3
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Feb 13 19:42:49 2016 -0600

    tests: Make developing tests less annoying
    
    Currently, we have to manually delete this directory every time the
    tests fail, else they will never pass again.

 tests/test-scores.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-scores.vala b/tests/test-scores.vala
index 89c5ec1..88c556d 100644
--- a/tests/test-scores.vala
+++ b/tests/test-scores.vala
@@ -201,6 +201,9 @@ private void test_import_from_score_directory ()
 
 public int main (string args[])
 {
+    /* Start fresh.... */
+    delete_scores ();
+
     Test.init (ref args);
     var test_suite = TestSuite.get_root ();
     test_suite.add (new TestCase ("Scores Files Created", () => {}, test_scores_files_exist, delete_scores));


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