nicoulaj / pytest-csv

CSV reporter for pytest.
GNU General Public License v3.0
21 stars 16 forks source link

Lost marker column after run tests #5

Closed VladimirPodolian closed 5 years ago

VladimirPodolian commented 5 years ago

Hi! First of all - thanks for your product! I recently discovered a problem - when I run tests (>1 in one session), the mark column in the report is lost. If I run the only one test, the mark column in the report is displayed

Here an example report of test run, that contains large count of tests:

success,markers,name
True,,test_internal_credit_pre_populated_fields
False,,test_tuci_internal_credit_linked
False,,test_onboarding_success_credit_linkage
True,,test_onboarding_account_linkage_cancel_mfa
False,,test_tuci_internal_credit_linkage_extra_question
False,,test_tuci_internal_success_credit_linkage
True,,test_onboarding_account_linkage_securityqa_mfa
True,,test_onboarding_account_linkage
False,,test_onboarding_credit_linkage_sidebar_values
True,,test_settings_accounts_accounts_provider_linkage_securityqa_mfa
True,,test_onboarding_account_linkage_token_mfa
True,,test_see_all_rates_link
True,,test_settings_add_provider_via_api
True,,test_settings_accounts_accounts_provider_linkage_cancel_mfa
False,,test_onboarding_credit_linkage_account_go_back
True,,test_settings_accounts_accounts_update_provider
False,,test_onboarding_credit_linkage_extra_question
True,,test_settings_accounts_accounts_provider_linkage_token_mfa
True,,test_settings_accounts_accounts_delete_provider

And example report of test run, that contain only one test:

success,markers,name
False,"responsive,test_onboarding,transunion,tuci",test_onboarding_credit_linkage_sidebar_values

My config: --csv web_tests/report_data/tap/tests.csv --csv-columns success,markers,name

nicoulaj commented 5 years ago

Are you using xdist ? Markers are lost when using xdist, see 9cc6267b226a4e5c9f4cb6c062dd53b26873e39d for examples of things that don't work with xdist.

VladimirPodolian commented 5 years ago

Thanks for the quick response Yes, I run tests with pytest-xdist

nicoulaj commented 5 years ago

should work fine in 2.0.0

VladimirPodolian commented 5 years ago

Great, thanks you!