You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a rails_system_test macro for a Rails application.
PARAMETERS
Name
Description
Default Value
test_package
Optional. The name of the package that contains the test helpers. For example, if the Rails app is rooted in the foo directory, the test package is typically foo/test.
None
application_system_test_case
Optional. The label for the Rails application's application_system_test_case.rb.
None
default_includes
Optional. A list of Ruby includes that should be part of the Ruby test invocation.
None
default_size
Optional. The default test size for the tests created with the resulting macro.
"large"
tags
Optional. A list of tags that are added to the test declaration.
["no-sandbox"]
RETURNS
A Bazel macro function that defines Rails system test targets using the
provided attributes.
Create a rails_test macro for a Rails application.
The resulting macro encapsulates the application-specific attributes for the
resulting test target.
PARAMETERS
Name
Description
Default Value
test_package
Optional. The name of the package that contains the test helpers. For example, if the Rails app is rooted in the foo directory, the test package is typically foo/test.
None
test_helper
The label for the Rails application's test_helper.rb.
None
default_includes
Optional. A list of Ruby includes that should be part of the Ruby test invocation.
None
default_size
Optional. The default test size for the tests created with the resulting macro.
"small"
tags
Optional. A list of tags that are added to the test declaration.
[]
RETURNS
A Bazel macro function that defines Rails test targets using the
provided attributes.