You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion
Hi,
can someone share the syntax for calling buck to run the tests for only a single plugin? Say, the cookbook-plugin as an example?
Also, is there a specific reason why we do not seem to run the tests as part of building the plugins on https://gerrit-ci.gerritforge.com/?
Thanks, Sebastian
Sebastian Schuberth
unread,
Aug 17, 2016, 5:22:00 AM8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion
BTW, I *did* try "buck test plugins/cookbook-plugin:cookbook-plugin", but that only gives "NO TESTS RAN".
Björn Pedersen
unread,
Aug 17, 2016, 5:25:50 AM8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion
Hi,
try:
buck test --test-selectors CookbookIT#
(buck test --help gives more information)
Björn
Sebastian Schuberth
unread,
Aug 17, 2016, 5:26:43 AM8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion
On Wednesday, August 17, 2016 at 11:22:00 AM UTC+2, Sebastian Schuberth wrote:
BTW, I *did* try "buck test plugins/cookbook-plugin:cookbook-plugin", but that only gives "NO TESTS RAN".
Ah, it's "buck test plugins/cookbook-plugin:cookbook_tests. Unfortunately, there seems to be no convention about the test target naming, so you need to look it up in the BUCK file for other plugins.
Sebastian Schuberth
unread,
Aug 17, 2016, 5:29:22 AM8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Björn Pedersen, Repo and Gerrit Discussion
Thanks, but that seems to be for running a single test class. I was
looking for running all tests for a single plugin, but I believe to
have found the answer (see my other post).
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion, ice...@googlemail.com
In order to be able to execute test from command line, plugins must define a java_test rule in their BUCK file. In that rule, most of plugins defines a label that can be used to execute all test of that rule. The label is typically the plugin name.
So you can use the following command to execute all cookbook-plugin tests: buck test --include=cookbook-plugin
Sebastian Schuberth
unread,
Aug 17, 2016, 11:19:16 AM8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hugo Arès, Repo and Gerrit Discussion, ice...@googlemail.com
Good to know, thanks. Still I was hoping there was a consistent way to
run all tests of a plugin. For example to keep CI configurations of
building plugins simple (allow to share most of the config) and be
able to always use the same target / label to run the tests
independent of the actual plugin.