Class ArchiveAndCompressTests
Inheritance
ArchiveAndCompressTests
Assembly: Unity.ScriptableBuildPipeline.Editor.Tests.dll
Syntax
public class ArchiveAndCompressTests : ArchiveAndCompressTestFixture
Properties
ContentHashTestCases
Declaration
public static IEnumerable ContentHashTestCases { get; }
Property Value
RebuildTestCases
Declaration
public static IEnumerable RebuildTestCases { get; }
Property Value
Methods
Declaration
[Test]
public void CalculateBundleDependencies_ReturnsRecursiveDependencies_ForNonRecursiveInputs()
Declaration
[Test]
public void CalculateBundleDependencies_ReturnsRecursiveDependencies_ForRecursiveInputs()
CanAddRawFilesToBundles()
Declaration
[Test]
public void CanAddRawFilesToBundles()
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
WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected(bool, Action<RebuildTestContext>)
Declaration
[Test]
[TestCaseSource(typeof(ArchiveAndCompressTests), "RebuildTestCases")]
public void WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected(bool shouldRebuild, Action<ArchiveAndCompressTests.RebuildTestContext> postFirstBuildAction)
Parameters
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