BREAKING CHANGE: Angular bazel users using protractor_web_test_suite from @angular/bazel npm package should now switch to the @bazel/protractor npm package. This should impact very few users and the user's that are impacted have a very easy upgrade path to switch to fetching the protractor_web_test_suite rule via the @bazel/protractor npm package. PR Close #32485
		
			
				
	
	
		
			23 lines
		
	
	
		
			676 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			676 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("@npm_bazel_protractor//:index.bzl", "protractor_web_test_suite")
 | |
| 
 | |
| """
 | |
|   Macro that can be used to define a benchmark test. This differentiates from
 | |
|   a normal Protractor test suite because we specify a custom "perf" configuration
 | |
|   that sets up "@angular/benchpress".
 | |
| """
 | |
| 
 | |
| def benchmark_test(name, server, deps, tags = []):
 | |
|     protractor_web_test_suite(
 | |
|         name = name,
 | |
|         configuration = "//:protractor-perf.conf.js",
 | |
|         data = [
 | |
|             "//packages/benchpress",
 | |
|         ],
 | |
|         on_prepare = "//modules/benchmarks:start-server.js",
 | |
|         server = server,
 | |
|         tags = tags,
 | |
|         deps = [
 | |
|             "@npm//yargs",
 | |
|         ] + deps,
 | |
|     )
 |