reportportal / agent-ruby

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

Rspec test results which stored in CSV are not populating in Report portal #61

Closed Agurul closed 5 years ago

Agurul commented 5 years ago

I have rspec test results which stored in csv file. I will not use expect in my rspec file due to huge data records validation. Report portal is not showing any results for my Passed test case.

Is it possible to avail my csv results file from project directory to report portal ?

abotalov commented 5 years ago

You can probably use RSpec.configuration.reporter.message('text') to report custom messages - https://github.com/reportportal/agent-ruby/blob/master/lib/report_portal/rspec/formatter.rb#L99

Agurul commented 5 years ago

Thanks for prompt response. Can you please elaborate where can I use the above command in my project, I have report_portal.yml config file alone in my project as part of rp integration.

abotalov commented 5 years ago

I assumed you want to send a message from rspec scenario. Here is an example - https://github.com/reportportal/agent-ruby/blob/fa7b5cf477c43234aca3f89f09bc1cfa3b2d794e/tests/spec/test_spec.rb#L5

Agurul commented 5 years ago

Super! It worked for me.. Thanks a ton