Evgeny,
The unit testing macro for Glean does have its limitations, but if there are ways we could improve it, I'm all ears.
One
thing to consider is that the testing process run by Glean need not be
identical to the one you run during your normal build. The goal of the
unit tests for Glean is for reporting and providing data to some other
tools (such as Emma or Cobertura). So, for instance, if the system
properties you normal pass in to support the logger don't affect the
outcome of the tests, then as far as the Glean tools are concerned, it
doesn't matter.
For the classpath you provide to the tests, how particular is that?
The Glean test macro allows for a property called "extra.test.path"
that you could override. It is a "path" element, (<pathelement
path="${extra.test.path}"/>) so you could define it with a full set
of locations if you needed. It is currently placed at the end of the
larger test classpath, but I don't remember offhand is that's
significant or not; I could look at what would happen if it were at the
beginning of the path, of that would make a difference to you.
For the other customized information you mentioned, how important
are they to the outcome of the tests? And what type of settings on the
junit task are these?