docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ArchiveAndCompressTests

    Inheritance
    object
    ArchiveAndCompressTestFixture
    ArchiveAndCompressTests
    Inherited Members
    ArchiveAndCompressTestFixture.OneTimeSetup()
    ArchiveAndCompressTestFixture.OneTimeTeardown()
    ArchiveAndCompressTestFixture.Setup()
    ArchiveAndCompressTestFixture.Teardown()
    ArchiveAndCompressTestFixture.GetUniqueFilename(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Pipeline.Tests
    Assembly: Unity.ScriptableBuildPipeline.Editor.Tests.dll
    Syntax
    public class ArchiveAndCompressTests : ArchiveAndCompressTestFixture

    Properties

    ContentHashTestCases

    Declaration
    public static IEnumerable ContentHashTestCases { get; }
    Property Value
    Type Description
    IEnumerable

    RebuildTestCases

    Declaration
    public static IEnumerable RebuildTestCases { get; }
    Property Value
    Type Description
    IEnumerable

    Methods

    CalculateBundleDependencies_ReturnsRecursiveDependencies_ForNonRecursiveInputs()

    Declaration
    [Test]
    public void CalculateBundleDependencies_ReturnsRecursiveDependencies_ForNonRecursiveInputs()

    CalculateBundleDependencies_ReturnsRecursiveDependencies_ForRecursiveInputs()

    Declaration
    [Test]
    public void CalculateBundleDependencies_ReturnsRecursiveDependencies_ForRecursiveInputs()

    CanAddRawFilesToBundles()

    Declaration
    [Test]
    public void CanAddRawFilesToBundles()

    PlatformCanHandle_LongPathReadingAndWriting()

    Declaration
    [Test]
    [UnityPlatform(exclude = new RuntimePlatform[] { RuntimePlatform.WindowsEditor })]
    public void PlatformCanHandle_LongPathReadingAndWriting()

    ResourceFilesAreAddedToBundles()

    Declaration
    [Test]
    public void ResourceFilesAreAddedToBundles()

    SupportsMultiThreadedArchiving_WhenEditorIs20193OrLater_IsTrue()

    Declaration
    [Test]
    public void SupportsMultiThreadedArchiving_WhenEditorIs20193OrLater_IsTrue()

    WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectoryButTimestampMismatch_ArchiveIsCopied()

    Declaration
    [Test]
    public void WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectoryButTimestampMismatch_ArchiveIsCopied()

    WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectory_ArchiveIsNotCopied()

    Declaration
    [Test]
    public void WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectory_ArchiveIsNotCopied()

    WhenArchiveIsAlreadyBuilt_CachedVersionIsUsed()

    Declaration
    [Test]
    public void WhenArchiveIsAlreadyBuilt_CachedVersionIsUsed()

    WhenArchiveIsCached_AndRebuildingArchive_HashIsAssignedToOutput()

    Declaration
    [Test]
    public void WhenArchiveIsCached_AndRebuildingArchive_HashIsAssignedToOutput()

    WhenAssetInBundleHasDependencies_DependenciesAreInDetails()

    Declaration
    [Test]
    public void WhenAssetInBundleHasDependencies_DependenciesAreInDetails()

    WhenBuildingArchive_BuildLogIsPopulated()

    Declaration
    [Test]
    public void WhenBuildingArchive_BuildLogIsPopulated()

    WhenBuildingManyArchives_ThreadedAndNonThreadedResultsAreIdentical()

    Declaration
    [Test]
    public void WhenBuildingManyArchives_ThreadedAndNonThreadedResultsAreIdentical()

    WhenBundleDoesNotHaveDependencies_DependenciesAreNotInDetails()

    Declaration
    [Test]
    public void WhenBundleDoesNotHaveDependencies_DependenciesAreNotInDetails()

    WhenInputsChange_BundleOutputHashIsAffectedAsExpected(bool, Action<ContentHashTestContext>)

    Declaration
    [Test]
    [TestCaseSource(typeof(ArchiveAndCompressTests), "ContentHashTestCases")]
    public void WhenInputsChange_BundleOutputHashIsAffectedAsExpected(bool hashShouldChange, Action<ArchiveAndCompressTests.ContentHashTestContext> postFirstBuildAction)
    Parameters
    Type Name Description
    bool hashShouldChange
    Action<ArchiveAndCompressTests.ContentHashTestContext> postFirstBuildAction

    WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected(bool, Action<RebuildTestContext>)

    Declaration
    [Test]
    [TestCaseSource(typeof(ArchiveAndCompressTests), "RebuildTestCases")]
    public void WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected(bool shouldRebuild, Action<ArchiveAndCompressTests.RebuildTestContext> postFirstBuildAction)
    Parameters
    Type Name Description
    bool shouldRebuild
    Action<ArchiveAndCompressTests.RebuildTestContext> postFirstBuildAction

    WhenUsingLongPath_CopyFileWithTimestampIfDifferent_ThrowsPathTooLongException(string, string)

    Declaration
    [TestCase("01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_d", ".")]
    [TestCase("C:/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars", ".")]
    [TestCase(".", "01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_d")]
    [TestCase(".", "C:/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars/01_long_directory_path_for_35chars")]
    [UnityPlatform(exclude = new RuntimePlatform[] { RuntimePlatform.LinuxEditor, RuntimePlatform.OSXEditor })]
    public void WhenUsingLongPath_CopyFileWithTimestampIfDifferent_ThrowsPathTooLongException(string path1, string path2)
    Parameters
    Type Name Description
    string path1
    string path2
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)