Change history chart benchmark label programatically

90 views
Skip to first unread message

Zach Lym

unread,
Oct 28, 2012, 11:32:05 PM10/28/12
to junit-be...@googlegroups.com
Can one change jub.customkey based on variables in the JUnit test?  Adding this as an argument from the test config is .... silly : )

Dawid Weiss

unread,
Oct 29, 2012, 5:13:16 AM10/29/12
to junit-be...@googlegroups.com
Zach,

I appreciate your feedback but it's not constructive. Scratch your own
itch and provide a patch -- all the source is on github, you can do
and implement whatever features you want. This is a 'labs' project we
developed because nothing else like that was available and we're
obviously focused on the things we need. People have contributed their
stuff and I've gladly pulled in their patches but we can't really
afford the time to implement every feature request out there.

The motivation for jub.customkey being a system property is that
typically this is a build key from an automated build system (jenkins,
bamboo or likewise). It's not silly, it's a real use case.

Dawid

Zach Lym

unread,
Oct 30, 2012, 8:01:22 PM10/30/12
to junit-be...@googlegroups.com
Perhaps "silly" was poor word choice and it makes perfect sense when speaking in terms of Jenkins.

For all future googlers, set System.setProperty("jub.customkey", "your keyname here") in a @BeforeClass method will do the trick.

Thanks,
-Zach

Adnan Ameen

unread,
Jun 24, 2014, 10:12:05 AM6/24/14
to junit-be...@googlegroups.com
Thanks Zach. That's what I was looking for couple of hours.
Reply all
Reply to author
Forward
0 new messages