Skip to content

Commit 2c51938

Browse files
mugdhadhole1Mugdha Dhole
andauthored
Add Bazel test target for html report tool test (#489)
Add py_test target for test_online_report_input.py to enable Bazel-based testing of HTML report online input functionality. Co-authored-by: Mugdha Dhole <Mugdha.Dhole@bmwtechworks.in>
1 parent 82fe592 commit 2c51938

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

tests_system/lobster_html_report/BUILD.bazel

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,14 @@ py_test(
5959
"//tests_system/tests_utils",
6060
],
6161
)
62+
63+
py_test(
64+
name = "test_online_report_input",
65+
srcs = ["test_online_report_input.py"],
66+
deps = [
67+
":lobster_html_report",
68+
"//lobster/tools/core/html_report",
69+
"//tests_system",
70+
"//tests_system/tests_utils",
71+
],
72+
)

tests_system/lobster_html_report/data/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filegroup(
22
name = "html_report_data_system",
33
srcs = glob([
4-
"*.output",
4+
"*.html",
55
"*.lobster",
66
]),
77
visibility = ["//visibility:public"],

tests_system/tests_utils/BUILD.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ py_binary(
66
visibility = ["//visibility:public"],
77
)
88

9+
py_binary(
10+
name = "update_html_expected_output",
11+
srcs = ["update_html_expected_output.py"],
12+
visibility = ["//visibility:public"],
13+
)
14+
915
py_binary(
1016
name = "update_online_json_with_hashes",
1117
srcs = ["update_online_json_with_hashes.py"],
@@ -23,6 +29,7 @@ py_library(
2329
srcs = [
2430
"__init__.py",
2531
"update_cpptest_expected_output.py",
32+
"update_html_expected_output.py",
2633
"update_online_json_with_hashes.py",
2734
"update_version_in_html.py",
2835
],

0 commit comments

Comments
 (0)