Skip to content

feat: initial implementation of Unity SDK #8

feat: initial implementation of Unity SDK

feat: initial implementation of Unity SDK #8

GitHub Actions / playmode Test Results completed Jul 10, 2024 in 0s

❌️ playmode Test Results - 6/9, failed: 3 - Failed in 0.481s

❌️ playmode-results.xml - 6/9, failed: 3 - Failed in 0.481s

Details

❌️ playmode-results.xml - 6/9, failed: 3 - Failed in 0.481s
  • ❌️ ClickstreamAnalytics.Tests.ClickstreamPerformanceTests - 1/2, failed: 1 - Failed in 0.269s
    • ❌️ TestPerformanceWhenUseMemoryCache - Failed in 0.253s
      Expected: True
      But was: False

        Save 100 events cost: 38.3963 ms
      
      at ClickstreamAnalytics.Tests.ClickstreamPerformanceTests.TestPerformanceWhenUseMemoryCache () [0x000a0] in Tests/Runtime/ClickstreamPerformanceTest.cs:36
      
    • TestPerformanceWhenUsePlayerPrefs - Passed in 0.016s

  • ❌️ ClickstreamAnalytics.Tests.ClickstreamTests - 5/7, failed: 2 - Failed in 0.167s
    • TestFlushEvents - Passed in 0.068s
    • TestRecordEventWithAllAttributesType - Passed in 0.008s
    • TestRecordEventWithName - Passed in 0.008s
    • TestSetGlobalAttributes - Passed in 0.011s
    • ❌️ TestSetUserAttributes - Failed in 0.021s
      System.NullReferenceException : Object reference not set to an instance of an object
      at ClickstreamAnalytics.Provider.ClickstreamProvider.SetUserAttributes (System.Collections.Generic.Dictionary`2[TKey,TValue] userAttributes) [0x00054] in ClickstreamAnalytics/Provider/ClickstreamProvider.cs:109
      at ClickstreamAnalytics.ClickstreamAnalytics.SetUserAttributes (System.Collections.Generic.Dictionary`2[TKey,TValue] userAttributes) [0x00001] in ClickstreamAnalytics/ClickstreamAnalytics.cs:46
      at ClickstreamAnalytics.Tests.ClickstreamTests.TestSetUserAttributes () [0x0002b] in Tests/Runtime/ClickstreamTest.cs:64
      at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
      at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
    • ❌️ TestSetUserId - Failed in 0.014s
      System.NullReferenceException : Object reference not set to an instance of an object
      at ClickstreamAnalytics.Storage.ClickstreamUserStorage.GetUserInfoFromMapping (System.String userId) [0x0001c] in ClickstreamAnalytics/Storage/ClickstreamUserStorage.cs:106
      at ClickstreamAnalytics.Provider.ClickstreamProvider.SetUserId (System.String userId) [0x00051] in ClickstreamAnalytics/Provider/ClickstreamProvider.cs:77
      at ClickstreamAnalytics.ClickstreamAnalytics.SetUserId (System.String userId) [0x00001] in ClickstreamAnalytics/ClickstreamAnalytics.cs:41
      at ClickstreamAnalytics.Tests.ClickstreamTests.TestSetUserId () [0x00001] in Tests/Runtime/ClickstreamTest.cs:52
      at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
      at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0
    • TestUpdateConfiguration - Passed in 0.038s

Annotations

Check failure on line 36 in Tests/Runtime/ClickstreamPerformanceTest.cs

See this annotation in the file changed.

@github-actions github-actions / playmode Test Results

ClickstreamAnalytics.Tests.ClickstreamPerformanceTests.TestPerformanceWhenUseMemoryCache

  Expected: True
  But was:  False
Raw output
Save 100 events cost: 38.3963 ms

at ClickstreamAnalytics.Tests.ClickstreamPerformanceTests.TestPerformanceWhenUseMemoryCache () [0x000a0] in /github/workspace/Tests/Runtime/ClickstreamPerformanceTest.cs:36

Check failure on line 109 in ClickstreamAnalytics/Provider/ClickstreamProvider.cs

See this annotation in the file changed.

@github-actions github-actions / playmode Test Results

ClickstreamAnalytics.Tests.ClickstreamTests.TestSetUserAttributes

System.NullReferenceException : Object reference not set to an instance of an object
Raw output
  at ClickstreamAnalytics.Provider.ClickstreamProvider.SetUserAttributes (System.Collections.Generic.Dictionary`2[TKey,TValue] userAttributes) [0x00054] in /github/workspace/ClickstreamAnalytics/Provider/ClickstreamProvider.cs:109 
  at ClickstreamAnalytics.ClickstreamAnalytics.SetUserAttributes (System.Collections.Generic.Dictionary`2[TKey,TValue] userAttributes) [0x00001] in /github/workspace/ClickstreamAnalytics/ClickstreamAnalytics.cs:46 
  at ClickstreamAnalytics.Tests.ClickstreamTests.TestSetUserAttributes () [0x0002b] in /github/workspace/Tests/Runtime/ClickstreamTest.cs:64 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0 

Check failure on line 106 in ClickstreamAnalytics/Storage/ClickstreamUserStorage.cs

See this annotation in the file changed.

@github-actions github-actions / playmode Test Results

ClickstreamAnalytics.Tests.ClickstreamTests.TestSetUserId

System.NullReferenceException : Object reference not set to an instance of an object
Raw output
  at ClickstreamAnalytics.Storage.ClickstreamUserStorage.GetUserInfoFromMapping (System.String userId) [0x0001c] in /github/workspace/ClickstreamAnalytics/Storage/ClickstreamUserStorage.cs:106 
  at ClickstreamAnalytics.Provider.ClickstreamProvider.SetUserId (System.String userId) [0x00051] in /github/workspace/ClickstreamAnalytics/Provider/ClickstreamProvider.cs:77 
  at ClickstreamAnalytics.ClickstreamAnalytics.SetUserId (System.String userId) [0x00001] in /github/workspace/ClickstreamAnalytics/ClickstreamAnalytics.cs:41 
  at ClickstreamAnalytics.Tests.ClickstreamTests.TestSetUserId () [0x00001] in /github/workspace/Tests/Runtime/ClickstreamTest.cs:52 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <e3b07672ffbd43c1838e1ebbe94cbdf5>:0