Class ArchiveAndCompressTests
Tests for archive and compression
Inherited Members
Namespace: UnityEditor .Build.Pipeline.Tests
Assembly: Unity.ScriptableBuildPipeline.Editor.Tests.dll
Syntax
public class ArchiveAndCompressTests : ArchiveAndCompressTestFixture
Properties
ContentHashTestCases
ContentHashTestCases
Declaration
public static IEnumerable ContentHashTestCases { get; }
Property Value
Type | Description |
---|---|
IEnumerable |
RebuildTestCases
RebuildTestCases
Declaration
public static IEnumerable RebuildTestCases { get; }
Property Value
Type | Description |
---|---|
IEnumerable |
Methods
CalculateBundleDependencies_ReturnsRecursiveDependencies_ForNonRecursiveInputs()
CalculateBundleDependencies_ReturnsRecursiveDependencies_ForNonRecursiveInputs
Declaration
[Test]
public void CalculateBundleDependencies_ReturnsRecursiveDependencies_ForNonRecursiveInputs()
CalculateBundleDependencies_ReturnsRecursiveDependencies_ForRecursiveInputs()
CalculateBundleDependencies_ReturnsRecursiveDependencies_ForRecursiveInputs
Declaration
[Test]
public void CalculateBundleDependencies_ReturnsRecursiveDependencies_ForRecursiveInputs()
CanAddRawFilesToBundles()
CanAddRawFilesToBundles
Declaration
[Test]
public void CanAddRawFilesToBundles()
PlatformCanHandle_LongPathReadingAndWriting()
PlatformCanHandle_LongPathReadingAndWriting
Declaration
[Test]
[UnityPlatform(exclude = new RuntimePlatform[] { RuntimePlatform.WindowsEditor })]
public void PlatformCanHandle_LongPathReadingAndWriting()
ResourceFilesAreAddedToBundles()
ResourceFilesAreAddedToBundles
Declaration
[Test]
public void ResourceFilesAreAddedToBundles()
SupportsMultiThreadedArchiving_WhenEditorIs20193OrLater_IsTrue()
SupportsMultiThreadedArchiving_WhenEditorIs20193OrLater_IsTrue
Declaration
[Test]
public void SupportsMultiThreadedArchiving_WhenEditorIs20193OrLater_IsTrue()
WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectoryButTimestampMismatch_ArchiveIsCopied()
WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectoryButTimestampMismatch_ArchiveIsCopied
Declaration
[Test]
public void WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectoryButTimestampMismatch_ArchiveIsCopied()
WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectory_ArchiveIsNotCopied()
WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectory_ArchiveIsNotCopied
Declaration
[Test]
public void WhenArchiveIsAlreadyBuilt_AndArchiveIsInOutputDirectory_ArchiveIsNotCopied()
WhenArchiveIsAlreadyBuilt_CachedVersionIsUsed()
WhenArchiveIsAlreadyBuilt_CachedVersionIsUsed
Declaration
[Test]
public void WhenArchiveIsAlreadyBuilt_CachedVersionIsUsed()
WhenArchiveIsCached_AndRebuildingArchive_HashIsAssignedToOutput()
WhenArchiveIsCached_AndRebuildingArchive_HashIsAssignedToOutput
Declaration
[Test]
public void WhenArchiveIsCached_AndRebuildingArchive_HashIsAssignedToOutput()
WhenAssetInBundleHasDependencies_DependenciesAreInDetails()
WhenAssetInBundleHasDependencies_DependenciesAreInDetails
Declaration
[Test]
public void WhenAssetInBundleHasDependencies_DependenciesAreInDetails()
WhenBuildingArchive_BuildLogIsPopulated()
WhenBuildingArchive_BuildLogIsPopulated
Declaration
[Test]
public void WhenBuildingArchive_BuildLogIsPopulated()
WhenBuildingManyArchives_ThreadedAndNonThreadedResultsAreIdentical()
WhenBuildingManyArchives_ThreadedAndNonThreadedResultsAreIdentical
Declaration
[Test]
public void WhenBuildingManyArchives_ThreadedAndNonThreadedResultsAreIdentical()
WhenBundleDoesNotHaveDependencies_DependenciesAreNotInDetails()
WhenBundleDoesNotHaveDependencies_DependenciesAreNotInDetails
Declaration
[Test]
public void WhenBundleDoesNotHaveDependencies_DependenciesAreNotInDetails()
WhenInputsChange_BundleOutputHashIsAffectedAsExpected(bool, Action<ContentHashTestContext>)
WhenInputsChange_BundleOutputHashIsAffectedAsExpected
Declaration
[Test]
[TestCaseSource(typeof(ArchiveAndCompressTests), "ContentHashTestCases")]
public void WhenInputsChange_BundleOutputHashIsAffectedAsExpected(bool hashShouldChange, Action<ArchiveAndCompressTests.ContentHashTestContext> postFirstBuildAction)
Parameters
Type | Name | Description |
---|---|---|
bool | hashShouldChange | Should the hash change? |
Action<Archive |
postFirstBuildAction | Callback invoked after first build |
WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected(bool, Action<RebuildTestContext>)
WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected
Declaration
[Test]
[TestCaseSource(typeof(ArchiveAndCompressTests), "RebuildTestCases")]
public void WhenInputsChanges_AndRebuilt_CachedDataIsUsedAsExpected(bool shouldRebuild, Action<ArchiveAndCompressTests.RebuildTestContext> postFirstBuildAction)
Parameters
Type | Name | Description |
---|---|---|
bool | shouldRebuild | Should rebuild test cases? |
Action<Archive |
postFirstBuildAction | Callback after first build |
WhenUsingLongPath_CopyFileWithTimestampIfDifferent_ThrowsPathTooLongException(string, string)
WhenUsingLongPath_CopyFileWithTimestampIfDifferent_ThrowsPathTooLongException
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)