Clone in a terminal:
Commit 8713a32
Johan Mattsson - 2014-12-23T17:34:55+00:00
8713a32d333a474d3e4696d35c3565b256246c3djohan.mattsson.m@gmail.com

Run only one test case on start

Changed files (2)

Diff

diff --git a/libbirdfont/BirdFont.vala b/libbirdfont/BirdFont.valaindex 4e82dcb..aa73bf2 100644--- a/libbirdfont/BirdFont.vala+++ b/libbirdfont/BirdFont.vala@@ -483,8 +483,10 @@ public class BirdFont { 		DefaultCharacterSet.get_characters_for_prefered_language ();  		HeadTable.init ();-		-		TestBirdFont.run_tests ();++		if (TestBirdFont.get_singleton ().test_cases_to_run != "All") {+			TestBirdFont.run_tests ();+		} 	}  	public static void set_bundle_path (string path) {diff --git a/libbirdfont/TestBirdFont.vala b/libbirdfont/TestBirdFont.valaindex d4b405b..0f93493 100644--- a/libbirdfont/TestBirdFont.vala+++ b/libbirdfont/TestBirdFont.vala@@ -42,7 +42,7 @@ class TestBirdFont : GLib.Object { 		
 	static bool slow_test = false;
 	
-	string test_cases_to_run; // name of specific test case or all to run all test cases
+	public string test_cases_to_run; // name of specific test case or all to run all test cases
 	
 	public TestBirdFont () {
 		assert (singleton == null);

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112