Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-High Target-2.6

New issue 880 by pekka.klarck: Possibility to generate individual log files for each combined suite
http://code.google.com/p/robotframework/issues/detail?id=880

When combining reports, the resulting log file can grow rather large. This is going to be problematic with RF 2.6 because it doesn't support splitting outputs (issue 861).

A relatively easy solution to this problem is making it possible to generate individual log files for each suite (i.e. output file) that is combined. There should always be only one report and tests in it should have links to correct logs.

We probably don't want to make this default to it needs a command line option. I think we have two possibilities:

1) Add a new option that enables this functionality.

2) Use special value with --log option e.g. like `--log SEPARATE`.

Another thing to decide is how we want users to give the names of the log files. I see few possibilities:

1) Get only the base name and add indexes automatically. For example, `--log foo.html` (or `--log SEPARATE:foo.html`) would create log files foo1.html, foo2.html, etc.

2) Allow giving multiple log file names with --log option like `--log first.html:second.html:third.html`. A problems is that what to do when the number of logs doesn't match the number of combined outputs.

3) Require log names to be given with the output names e.g. like `rebot --log SEPARATE output1.xml:log.html 2nd.xml:2nd.html`. A big problem is this makes a it impossible to use `rebot *.xml`.

4) Don't allow users giving log names but generate them dynamically somehow. A problem is that users have no control. Not much (at all?) easier to implement than 1) so probably not a good idea. Notice that getting the log name from the suite name isn't possible because it is possible that multiple suites with same name are combined.

Reply via email to