private void OnNewGroup()
        {
            var group = new SA_TestGroupConfig();

            group.Name = "New Test Group";

            Config.TestGroups.Add(group);
        }
        private void GroupContent(SA_TestGroupConfig group)
        {
            using (new SA_GuiIndentLevel(-1)) {
                group.Name    = EditorGUILayout.TextField("Name:", group.Name);
                group.Texture = (Texture2D)EditorGUILayout.ObjectField("Group Icon:", group.Texture, typeof(Texture2D), false, GUILayout.Height(16));

                GroupIndex = Config.TestGroups.IndexOf(group);
                ListIndex  = 0;
                ReorderableListGUI.ListField(group.Tests, DrawTestListItem, DrawEmpty);
            }
        }
Example #3
0
 public SA_GroupTestRunner(SA_TestGroupConfig testGroupConfig)
 {
     m_testGroupConfig = testGroupConfig;
     m_tests.AddRange(m_testGroupConfig.Tests.GetRange(0, m_testGroupConfig.Tests.Count));
 }
 private void OnGorupStartUI(SA_TestGroupConfig group)
 {
     // GUILayout.Space(5);
     group.Enabled = EditorGUILayout.Toggle(group.Enabled, GUILayout.Width(16));
     GUILayout.Space(10);
 }
 private string GroupTitle(SA_TestGroupConfig group)
 {
     return(group.Name);
 }