docs.unity3d.com
    Show / Hide Table of Contents

    Class CodeGenerator

    Inheritance
    Object
    CodeGenerator
    Namespace: Unity.AutomatedQA.Editor
    Syntax
    public static class CodeGenerator

    Fields

    NEW_LINE

    Declaration
    public static readonly string NEW_LINE
    Field Value
    Type Description
    String

    Methods

    CreateTestAssembly()

    Create the assembly that allows UnityTests to be compiled.

    Declaration
    public static void CreateTestAssembly()

    CreateTestAssemblyFolder()

    Create the folder where tests will be stored.

    Declaration
    public static void CreateTestAssemblyFolder()

    GenerateTestFromAutomatedRun(String, Boolean, Boolean, Boolean, String)

    Declaration
    public static List<(string recordingFileName, string cSharpScriptFileName, bool isStepFile)> GenerateTestFromAutomatedRun(string automatedRunFileName, bool ignoreDiffs, bool isSimpleTest, bool useSimplifiedDriverCode, string stepFileToOverwrite = "")
    Parameters
    Type Name Description
    String automatedRunFileName
    Boolean ignoreDiffs
    Boolean isSimpleTest
    Boolean useSimplifiedDriverCode
    String stepFileToOverwrite
    Returns
    Type Description
    List<ValueTuple<String, String, Boolean>>

    GenerateTestFromRecording(String, Boolean, Boolean, Boolean, String)

    Declaration
    public static List<(string recordingFileName, string cSharpScriptFileName, bool isStepFile)> GenerateTestFromRecording(string recordingFileName, bool ignoreDiffs, bool isSimpleTest, bool useSimplifiedDriverCode, string stepFileToOverwrite = "")
    Parameters
    Type Name Description
    String recordingFileName
    Boolean ignoreDiffs
    Boolean isSimpleTest
    Boolean useSimplifiedDriverCode
    String stepFileToOverwrite
    Returns
    Type Description
    List<ValueTuple<String, String, Boolean>>

    GetIndentationString(Int32)

    Add spaces to a string based on requested indentiation tab count.

    Declaration
    public static string GetIndentationString(int tabCount)
    Parameters
    Type Name Description
    Int32 tabCount
    Returns
    Type Description
    String
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023