harbur / captain

Captain - Convert your Git workflow to Docker :whale: containers
MIT License
766 stars 51 forks source link

Feature request: support test subcommands? #60

Open jmmills opened 8 years ago

jmmills commented 8 years ago

It would be nice to be able to breakout tests on a container into sub-commands, this would be useful for CI/CD integration v. Developer workflow.

Example, a python app that might need coverage reports generated in junit, but developers want console tests:

app:
  image: myorg/app
  build: Dockerfile
  test:
    default: nosetests --with-coverage --with-timer 
    ci: nosetests --with-xunit --with-coverage 

Thus, development workflow for testing would be done with captain test running the default target, and a CI server could call captain test ci to run a custom test command.