Ejemplo n.º 1
0
 def testGetTraceUrlLocal(self):
     test_result = testing.TestResult(
         'benchmark/story',
         output_artifacts={'trace.html': testing.Artifact('trace.html')},
     )
     url = processor.GetTraceUrl(test_result)
     self.assertEqual(url, 'file://trace.html')
Ejemplo n.º 2
0
 def testGetTraceUrlEmpty(self):
     test_result = testing.TestResult('benchmark/story')
     url = processor.GetTraceUrl(test_result)
     self.assertIsNone(url)