reportportal / agent-ruby

Agent - Ruby Cucumber and RSpec formatters
Apache License 2.0
15 stars 43 forks source link

Different titles for rspec and cucumber tests #29

Closed bheemreddy181-zz closed 5 years ago

bheemreddy181-zz commented 5 years ago

Is there a way i can use different project names for rspec and cucumber tests ?

aliaksandr-trush commented 5 years ago

Projects names configures in the Report Portal application. In your launches you can specify project name in config file or as environment variable rp_project.

bheemreddy181-zz commented 5 years ago

What if my repo has both functional tests written in cucumber and unit tests written in rpsec which rely on same work space , i can have only one project name on one repo, no more than that

like this :

uuid: e07bc990-cd3b-4f24-9a62-d7860008b2e0

endpoint: http://report_portal.dev.com:8080/api/v1

project: frontend_staging_tests

launch: Integration_tests

tags: [frontend_tests,Integration_tests]

is_debug: false
DzmitryHumianiuk commented 5 years ago

@aliaksandr-trush ^

aliaksandr-trush commented 5 years ago

Answer the same - set project name as environment variable (cli parameter).

abotalov commented 5 years ago

As @aliaksandr-trush said different configuration settings can be provided via:

If you have stable setups (like frontend and integration tests) you can create rake tasks that preset these environment variables and run cucumber.

We can discuss a better idea if you have it.