Class org.mozilla.fenix.components.metrics.DefaultMetricsStorageTest

37

tests

0

failures

0

ignored

0.982s

duration

100%

successful

Tests

Test Duration Result
GIVEN first week activated already sent WHEN first week activated signal sent THEN userActivated will not be sent 0.007s passed
GIVEN first week activated days of use and search use thresholds reached THEN will be sent 0.133s passed
GIVEN first week activated days of use threshold not reached THEN will not be sent 0.007s passed
GIVEN first week activated search use threshold not reached THEN will not be sent 0.007s passed
GIVEN not yet in recording window WHEN checking to track THEN days of use still updated 0.006s passed
GIVEN outside first week after install WHEN checking to track THEN days of use is not updated 0.009s passed
GIVEN serp ad clicked event already sent WHEN checking to track serp ad clicked THEN event will not be sent 0.005s passed
GIVEN serp ad clicked event not sent WHEN checking to track serp ad clicked THEN event will be sent 0.006s passed
GIVEN set as default has been sent and app is default WHEN checked for sending THEN will be not sent 0.005s passed
GIVEN set as default has not been sent and app is default WHEN checked for sending THEN will be sent 0.005s passed
GIVEN set as default has not been sent and app is not default WHEN checked for sending THEN will not be sent 0.005s passed
GIVEN that app has been used for 3 days but not consecutively WHEN checked for first week activity THEN event will be not sent 0.007s passed
GIVEN that app has been used for 3 days consecutively but not within first week WHEN checked for first week activity THEN event will be not sent 0.006s passed
GIVEN that app has been used for less than 3 days in a row WHEN checked for first week activity THEN event will not be sent 0.008s passed
GIVEN that app has only been used for 3 days in a row WHEN checked for first week activity THEN event will be sent 0.006s passed
GIVEN that events should not be generally sent WHEN event would be tracked THEN it is not 0.005s passed
GIVEN that first week activity has already been sent WHEN checked for first week activity THEN event will be not sent 0.005s passed
GIVEN that first week activity is not sent WHEN checked to send THEN current day is added to rolling days 0.008s passed
GIVEN that it has been less than 24 hours since last resumed sent WHEN checked for sending THEN will not be sent 0.004s passed
GIVEN that it has been less than 24 hours since uri load sent WHEN checked for sending THEN will not be sent 0.005s passed
GIVEN that it has been more than 24 hours since last resumed sent WHEN checked for sending THEN will be sent 0.005s passed
GIVEN that it has been more than 24 hours since uri load sent WHEN checked for sending THEN will be sent 0.005s passed
GIVEN usage time growth has been sent WHEN registering as usage recorder THEN will not be registered 0.004s passed
GIVEN usage time growth has not been sent and not within first day WHEN registering as usage recorder THEN will not be registered 0.017s passed
GIVEN usage time growth has not been sent and within first day WHEN registering as usage recorder THEN will be registered 0.006s passed
GIVEN usage time has not passed threshold and has not been sent WHEN checking to track THEN event will not be sent 0.007s passed
GIVEN usage time has passed threshold and has not been sent WHEN checking to track THEN event will be sent 0.007s passed
WHEN first week activity state updated THEN settings updated accordingly 0.016s passed
WHEN first week search activity is sent in first half of first week THEN settings will not be updated 0.017s passed
WHEN first week search activity is sent in second half of first week THEN settings will be updated 0.017s passed
WHEN first week usage signal is sent a full day after last sent THEN settings will be updated accordingly 0.009s passed
WHEN first week usage signal is sent less than a full day after last sent THEN settings will not be updated 0.007s passed
WHEN last resumed state updated THEN settings updated accordingly 0.008s passed
WHEN set as default updated THEN settings will be updated accordingly 0.017s passed
WHEN updating usage state THEN storage will be delegated to settings 0.006s passed
WHEN uri load updated THEN settings updated accordingly 0.006s passed
WHEN usage recorder receives onResume and onPause callbacks THEN it will store usage length 0.579s passed