New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cram should handle test absence gracefully #280

Closed
arcivanov opened this Issue Nov 30, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@arcivanov
Contributor

arcivanov commented Nov 30, 2015

[ERROR] Cram tests failed!
[ERROR] Usage: cram [OPTIONS] TESTS...
[ERROR] See: '/Users/arcivanov/Documents/src/myplugin/myproject-pyb-plugin/target/reports/cram.err' for details
Traceback (most recent call last):
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/cli.py", line 403, in main
    environments=options.environments, tasks=arguments)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/reactor.py", line 129, in build
    self.build_execution_plan(tasks, execution_plan)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/reactor.py", line 171, in build_execution_plan
    reactor=self)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/execution.py", line 334, in execute_execution_plan
    summaries.append(self.execute_task(task, **keyword_arguments))
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/execution.py", line 281, in execute_task
    task.execute(self.logger, keyword_arguments)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/execution.py", line 166, in execute
    executable.execute(argument_dict)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/execution.py", line 97, in execute
    self.callable(*arguments)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/plugins/python/cram_plugin.py", line 121, in run_integration_tests
    run_cram_tests(project, logger)
  File "/Users/arcivanov/.pyenv/versions/3.5.0/envs/myproject-venv/lib/python3.5/site-packages/pybuilder/plugins/python/cram_plugin.py", line 113, in run_cram_tests
    raise BuildFailedException("Cram tests failed!")
pybuilder.errors.BuildFailedException: Cram tests failed!

@arcivanov arcivanov added the bug label Nov 30, 2015

@arcivanov arcivanov self-assigned this Nov 30, 2015

@arcivanov arcivanov added this to the v0.11.3 milestone Nov 30, 2015

arcivanov added a commit to arcivanov/pybuilder that referenced this issue Nov 30, 2015

@arcivanov arcivanov closed this in #281 Nov 30, 2015

@arcivanov arcivanov removed the in progress label Nov 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment