Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Documentation for @rules_ruby@v0.23.1 View source
Public definition for rails_test_factory.

Function: rails_test_factory.new_system_test

Create a rails_system_test macro for a Rails application.

Parameters

test_package
name
default:"None"
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.
application_system_test_case
name
default:"None"
Optional. The label for the Rails application’s application_system_test_case.rb.
default_includes
name
default:"None"
Optional. A list of Ruby includes that should be part of the Ruby test invocation.
default_size
name
default:"large"
Optional. The default test size for the tests created with the resulting macro.
tags
name
default:"[\"no-sandbox\"]"
Optional. A list of tags that are added to the test declaration.
Returns: A Bazel macro function that defines Rails system test targets using the provided attributes.

Function: rails_test_factory.new_test

Create a rails_test macro for a Rails application. The resulting macro encapsulates the application-specific attributes for the resulting test target.

Parameters

test_package
name
default:"None"
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.
test_helper
name
default:"None"
The label for the Rails application’s test_helper.rb.
default_includes
name
default:"None"
Optional. A list of Ruby includes that should be part of the Ruby test invocation.
default_size
name
default:"small"
Optional. The default test size for the tests created with the resulting macro.
tags
name
default:"[]"
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.