coco icon indicating copy to clipboard operation
coco copied to clipboard

Change output directory?

Open hudsonburgess opened this issue 8 years ago • 7 comments

There doesn't seem to be a way to specify the output directory for reports. This would be helpful.

hudsonburgess avatar Feb 27 '17 15:02 hudsonburgess

This should be an easy option to add and I will be more than happy to add it if only I could see a use case for it.

I'm very curious to know what's wrong with coverage and which other directory name do you need?

lkdjiin avatar Feb 27 '17 19:02 lkdjiin

coverage/ is fine for the name. I want to move it up one level (say, to a docs/ directory outside the root of the source code)

hudsonburgess avatar Feb 27 '17 20:02 hudsonburgess

Yes, it should be possible to add this option. Let me take a closer look. In the meantime could you tell me more on why you would need this ? (I never had to do this, and so it's seems weird to me, I just would like to understand)

lkdjiin avatar Feb 28 '17 08:02 lkdjiin

Working on a project in which all the documentation (coverage, test plans, etc.) needs to stay in a separate folder from the source code.

Structure should be something like this

<project root>

  • docs/
    • coverage/
    • ...
  • app/
    • app/
    • config/
    • ...

hudsonburgess avatar Feb 28 '17 14:02 hudsonburgess

Ok, thanks for the explanation. I think I'll be able to give it a try tomorrow

lkdjiin avatar Feb 28 '17 19:02 lkdjiin

Hello @hab9sr It's done in the branch https://github.com/lkdjiin/coco/tree/coverage-directory There is a new option output_directory. You can set it as follow for your specific need:

:output_directory: "../docs/coverage"

Could you give it a try and then tell me if it's ok for you?

lkdjiin avatar Mar 01 '17 19:03 lkdjiin

Perfect; that's exactly what I needed. Thanks!

hudsonburgess avatar Mar 02 '17 14:03 hudsonburgess