 diff --git a/buildifier/buildifier.bzl b/buildifier/buildifier.bzl
-index 42445e7..69f3341 100644
+index 42445e7..0957f94 100644
 --- a/buildifier/buildifier.bzl
 +++ b/buildifier/buildifier.bzl
-@@ -34,8 +34,24 @@ def buildifier(**kwargs):
+@@ -34,8 +34,25 @@ def buildifier(**kwargs):
  def _buildifier_test_impl(ctx):
      return [buildifier_impl_factory(ctx, test_rule = True)]
  

             ),
         })
 
@@ -147,15 +152,24 @@ def buildifier_impl_factory(ctx, test_rule = False):
         args.append("-add_tables=%s" % ctx.file.add_tables.path)
 
     exclude_patterns_str = ""

+        kwargs["tags"] = tags
+    _buildifier_test(**kwargs)
diff --git a/buildifier/internal/factory.bzl b/buildifier/internal/factory.bzl
index 779c789..34a4997 100644
--- a/buildifier/internal/factory.bzl
+++ b/buildifier/internal/factory.bzl
@@ -46,6 +46,10 @@ def buildifier_attr_factory(test_rule = False):
