Skip to content

Run Tests 🧪

Run Tests 🧪 #279

GitHub Actions / Test Results 2023.1.1f1-StandaloneWindows64 completed Feb 8, 2024 in 0s

❌️ Test Results 2023.1.1f1-StandaloneWindows64 - 74/76, failed: 2 - Failed in 18.674s

❌️ editmode-results.xml - 29/31, failed: 2 - Failed in 13.802s

✅ playmode-results.xml - 45/45 - Passed in 4.872s

Details

❌️ editmode-results.xml - 29/31, failed: 2 - Failed in 13.802s
  • ✅ Yarn.Unity.Tests.CodeAnalysisTests - 2/2 - Passed in 38.871s

    • CodeAnalysis_CanGenerateSourceCode - Passed in 18.727s
    • CodeAnalysis_GeneratedSourceCode_RegistersExpectedActions - Passed in 20.145s
  • ✅ Yarn.Unity.Tests.DialogueReferenceTests - 3/3 - Passed in 0.049s

    • DialogueReference_CanFindValidNode - Passed in 0.048s
    • DialogueReference_CannotFindInvalidNode - Passed in 0.001s
    • DialogueReference_IsNotValidWhenEmpty - Passed in 0.000s
  • ❌️ Yarn.Unity.Tests.UnityLocalisationTests - 0/2, failed: 2 - Failed in 0.798s

    • ❌️ UnityLocalisation_FormerImplictLinesAreRemovedFromStringTables - Failed in 0.797s
      Expected: 0
      But was: 4

        Unable to find a locale in the string table that matches the default locale 
      Updated the following files: YarnScript-ProjectA-1
      
      at Yarn.Unity.Tests.UnityLocalisationTests.UnityLocalisation_FormerImplictLinesAreRemovedFromStringTables () [0x00029] in ./Packages/YarnSpinner/Tests/Editor/UnityLocalisationTests.cs:177
      
    • ❌️ UnityLocalisation_ImplicitStringsImportedCorrectly - Failed in 0.001s
      Expected: 0
      But was: 4

        at Yarn.Unity.Tests.UnityLocalisationTests.UnityLocalisation_ImplicitStringsImportedCorrectly () [0x00008] in ./Packages/YarnSpinner/Tests/Editor/UnityLocalisationTests.cs:156
      
  • ✅ Yarn.Unity.Tests.YarnImporterTests - 24/24 - Passed in 12.745s

    • YarnEditorUtility_HasValidEditorResources - Passed in 0.096s
    • YarnImporter_CanCreateNewProjectFromScript - Passed in 0.392s
    • YarnImporter_CanCreateNewScript - Passed in 0.234s
    • YarnImporter_CanCreateProjectAndScriptSimultaneously - Passed in 0.400s
    • YarnImporter_OnCreatingScriptNoLineIDs_HasNoImplicitLineIDs - Passed in 0.520s
    • YarnImporter_OnCreatingScriptWithNoLineIDs_HasImplicitLineIDs - Passed in 0.502s
    • YarnImporter_OnNonJSONProjectFormat_CanUpgrade - Passed in 0.716s
    • YarnImporter_OnNonJSONProjectFormat_ProducesUsefulError - Passed in 0.237s
    • YarnImporter_ProgramCacheIsInvalidatedAfterReimport - Passed in 0.722s
    • YarnImporterUtility_CanUpdateLocalizedCSVs_WhenBaseScriptChanges - Passed in 1.332s
    • YarnProjectImporter_OnImport_CreatesLocalizations - Passed in 0.442s
    • YarnProjectImporter_OnInvalidYarnFile_ImportsButDoesNotCompile - Passed in 0.505s
    • YarnProjectImporter_OnLocalizationsConfigured_LocatesAssets - Passed in 0.574s
    • YarnProjectImporter_OnLocalizationsSupplied_GeneratesExpectedLocalizations - Passed in 0.600s
    • YarnProjectImporter_OnNoLocalizationsSupplied_GeneratesExpectedLocalizations - Passed in 0.585s
    • YarnProjectImporter_OnValidYarnFile_GetExpectedStrings - Passed in 0.482s
    • YarnProjectImporter_OnValidYarnFile_ImportsAndCompilesSuccessfully - Passed in 0.436s
    • YarnProjectImporter_OnValidYarnFileWithMetadata_GeneratesLineMetadata - Passed in 0.434s
    • YarnProjectImporter_OnValidYarnFileWithMetadata_GetExpectedLineMetadata - Passed in 0.508s
    • YarnProjectImporter_OnValidYarnFileWithNoLineTags_CannotGetStrings - Passed in 0.428s
    • YarnProjectImporter_OnValidYarnFileWithoutMetadata_GeneratesEmptyLineMetadata - Passed in 0.423s
    • YarnProjectImporter_UpdatesLineMetadata_WhenBaseScriptChanges - Passed in 0.670s
    • YarnProjectImporter_UpdatesLineMetadata_WhenBaseScriptChangesWithoutMetadata - Passed in 0.705s
    • YarnProjectUtility_OnGeneratingLinesFile_CreatesFile - Passed in 0.805s
✅ playmode-results.xml - 45/45 - Passed in 4.872s
  • ✅ Yarn.Unity.Tests.CommandDispatchTests - 1/1 - Passed in 0.055s
    • CommandDispatch_Passes - Passed in 0.055s
  • ✅ Yarn.Unity.Tests.DialogueRunnerTests.HandleCommand_DispatchesCommands - 13/13 - Passed in 0.509s
    • HandleCommand_DispatchesCommands("testCommandInteger DialogueRunner 1 2","3") - Passed in 0.034s
    • HandleCommand_DispatchesCommands("testCommandString DialogueRunner a b","ab") - Passed in 0.056s
    • HandleCommand_DispatchesCommands("testCommandString DialogueRunner "a b" "c d"","a bc d") - Passed in 0.037s
    • HandleCommand_DispatchesCommands("testCommandGameObject DialogueRunner Sphere","Sphere") - Passed in 0.035s
    • HandleCommand_DispatchesCommands("testCommandComponent DialogueRunner Sphere","Sphere's MeshRenderer") - Passed in 0.040s
    • HandleCommand_DispatchesCommands("testCommandGameObject DialogueRunner DoesNotExist","(null)") - Passed in 0.036s
    • HandleCommand_DispatchesCommands("testCommandComponent DialogueRunner DoesNotExist","(null)") - Passed in 0.036s
    • HandleCommand_DispatchesCommands("testCommandNoParameters DialogueRunner","success") - Passed in 0.033s
    • HandleCommand_DispatchesCommands("testCommandOptionalParams DialogueRunner 1","3") - Passed in 0.042s
    • HandleCommand_DispatchesCommands("testCommandOptionalParams DialogueRunner 1 3","4") - Passed in 0.044s
    • HandleCommand_DispatchesCommands("testCommandDefaultName DialogueRunner","success") - Passed in 0.039s
    • HandleCommand_DispatchesCommands("testStaticCommand","success") - Passed in 0.035s
    • HandleCommand_DispatchesCommands("testExternalAssemblyCommand","success") - Passed in 0.043s
  • ✅ Yarn.Unity.Tests.DialogueRunnerTests.HandleCommand_FailsWhenParameterCountNotCorrect - 2/2 - Passed in 0.075s
    • HandleCommand_FailsWhenParameterCountNotCorrect("testCommandOptionalParams DialogueRunner","requires between 1 and 2 parameters, but 0 were provided") - Passed in 0.042s
    • HandleCommand_FailsWhenParameterCountNotCorrect("testCommandOptionalParams DialogueRunner 1 2 3","requires between 1 and 2 parameters, but 3 were provided") - Passed in 0.034s
  • ✅ Yarn.Unity.Tests.DialogueRunnerTests.HandleCommand_FailsWhenParameterTypesNotValid - 1/1 - Passed in 0.040s
    • HandleCommand_FailsWhenParameterTypesNotValid("testCommandInteger DialogueRunner 1 not_an_integer","Can't convert the given parameter") - Passed in 0.040s
  • ✅ Yarn.Unity.Tests.DialogueRunnerTests.SplitCommandText_SplitsTextCorrectly - 8/8 - Passed in 0.279s
    • SplitCommandText_SplitsTextCorrectly("one two three four",System.String[]) - Passed in 0.034s
    • SplitCommandText_SplitsTextCorrectly("one "two three" four",System.String[]) - Passed in 0.032s
    • SplitCommandText_SplitsTextCorrectly("one "two three four",System.String[]) - Passed in 0.038s
    • SplitCommandText_SplitsTextCorrectly("one "two \"three" four",System.String[]) - Passed in 0.037s
    • SplitCommandText_SplitsTextCorrectly("one \two three four",System.String[]) - Passed in 0.040s
    • SplitCommandText_SplitsTextCorrectly("one "two \\ three" four",System.String[]) - Passed in 0.032s
    • SplitCommandText_SplitsTextCorrectly("one "two \1 three" four",System.String[]) - Passed in 0.033s
    • SplitCommandText_SplitsTextCorrectly("one two",System.String[]) - Passed in 0.033s
  • ✅ Yarn.Unity.Tests.DialogueRunnerTests - 14/14 - Passed in 1.206s
    • AddCommandHandler_RegistersCommands - Passed in 0.099s
    • AddCommandHandler_RegistersCoroutineCommands - Passed in 0.051s
    • DialogueRunner_CanAccessInitialValues - Passed in 0.054s
    • DialogueRunner_CanAccessNodeHeaders - Passed in 0.056s
    • DialogueRunner_CanAccessNodeNames - Passed in 0.047s
    • DialogueRunner_OnDialogueStartAndStop_CallsEvents - Passed in 0.537s
    • DialogueRunner_WhenRestoringInvalidKey_FailsToLoad - Passed in 0.047s
    • DialogueRunner_WhenStateSaved_CanRestoreState - Passed in 0.056s
    • DialogueRunner_WhenStateSaved_CanRestoreState_PlayerPrefs - Passed in 0.051s
    • HandleCommand_DispatchedCommands_StartCoroutines - Passed in 0.039s
    • HandleLine_OnValidYarnFile_SendCorrectLinesToUI - Passed in 0.052s
    • HandleLine_OnViewsArrayContainingNullElement_SendCorrectLinesToUI - Passed in 0.036s
    • SaveAndLoad_BadSave - Passed in 0.036s
    • VariableStorage_OnExternalChanges_ReturnsExpectedValue - Passed in 0.045s
  • ✅ Yarn.Unity.Tests.VariableStorageTests - 6/6 - Passed in 2.637s
    • TestLoadingAndSettingAllVariables - Passed in 2.132s
    • TestLoadingDefaultValues - Passed in 0.070s
    • TestSavingAndLoadingFile - Passed in 0.131s
    • TestSavingAndLoadingFile_PlayerPrefs - Passed in 0.140s
    • TestVariableValuesFromYarnScript - Passed in 0.099s
    • VariableStorage_OnUsingValueWithInvalidName_ThrowsError - Passed in 0.064s

Annotations

Check failure on line 177 in ./Packages/YarnSpinner/Tests/Editor/UnityLocalisationTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results 2023.1.1f1-StandaloneWindows64

Yarn.Unity.Tests.UnityLocalisationTests.UnityLocalisation_FormerImplictLinesAreRemovedFromStringTables

  Expected: 0
  But was:  4
Raw output
Unable to find a locale in the string table that matches the default locale 
Updated the following files: YarnScript-ProjectA-1

at Yarn.Unity.Tests.UnityLocalisationTests.UnityLocalisation_FormerImplictLinesAreRemovedFromStringTables () [0x00029] in ./Packages/YarnSpinner/Tests/Editor/UnityLocalisationTests.cs:177

Check failure on line 156 in ./Packages/YarnSpinner/Tests/Editor/UnityLocalisationTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test Results 2023.1.1f1-StandaloneWindows64

Yarn.Unity.Tests.UnityLocalisationTests.UnityLocalisation_ImplicitStringsImportedCorrectly

  Expected: 0
  But was:  4
Raw output
at Yarn.Unity.Tests.UnityLocalisationTests.UnityLocalisation_ImplicitStringsImportedCorrectly () [0x00008] in ./Packages/YarnSpinner/Tests/Editor/UnityLocalisationTests.cs:156