The earlier update to nodejs rules 0.40.0 fixes the cross-platform RBE issues with nodejs_binary. This commit adds a work-around for rules_webtesting cross-platform RBE issues. PR Close #33708
		
			
				
	
	
		
			23 lines
		
	
	
		
			663 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			663 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//tools:defaults.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,
 | |
|     )
 |