Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cattibrie committed Sep 3, 2019
1 parent eac9c7c commit cb6a5e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/python/pants_test/goal/test_run_tracker_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def test_stats_local_json_file_v1(self):
'test',
'--run-tracker-stats-local-json-file={}'.format(tmpfile),
'--run-tracker-stats-version=1',
'--reporting-zipkin-trace-v2',
'--run-tracker-stats-option-scopes-to-record=["GLOBAL", "GLOBAL^v2_ui", "compile.rsc^capture_classpath"]',
'testprojects/src/java/org/pantsbuild/testproject/unicode/main',
])
Expand All @@ -31,6 +32,7 @@ def test_stats_local_json_file_v1(self):
self.assertIn('pantsd_stats', stats_json)
self.assertIn('recorded_options', stats_json)
self.assertIn('GLOBAL', stats_json['recorded_options'])
self.assertNotIn('engine_workunits', stats_json['pantsd_stats'])
self.assertIs(stats_json['recorded_options']['GLOBAL']['v2_ui'], False)
self.assertEqual(stats_json['recorded_options']['GLOBAL']['level'], 'info')
self.assertIs(stats_json['recorded_options']['GLOBAL^v2_ui'], False)
Expand All @@ -42,6 +44,7 @@ def test_stats_local_json_file_v2(self):
'test',
'--run-tracker-stats-local-json-file={}'.format(tmpfile),
'--run-tracker-stats-version=2',
'--reporting-zipkin-trace-v2',
'testprojects/src/java/org/pantsbuild/testproject/unicode/main',
])
self.assert_success(pants_run)
Expand All @@ -52,6 +55,7 @@ def test_stats_local_json_file_v2(self):
self.assertIn('run_info', stats_json)
self.assertIn('pantsd_stats', stats_json)
self.assertIn('workunits', stats_json)
self.assertNotIn('engine_workunits', stats_json['pantsd_stats'])

def test_workunit_failure(self):
pants_run = self.run_pants([
Expand Down

0 comments on commit cb6a5e7

Please sign in to comment.