Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Parameterize the l10n download link tests #439

Closed
wants to merge 1 commit into from

Conversation

davehunt
Copy link
Member

This builds on pull #438 so should be held until that's merged. It removes existing duplication (tests/test_l10n_download_links.py and tests/test_localization.py appear to check the same things) but also refactors the tests to be parameterised. This allows for better use of resources as we can run the individual tests in parallel, and provides a better representation of coverage and failures. It also means that when running these tests locally you get regular feedback, rather than individual tests running for several minutes without reporting anything to the console.

@davehunt
Copy link
Member Author

Adhoc: http://webqa-ci-staging1.qa.scl3.mozilla.com:8080/job/mozorg.adhoc/32/

Before: 122 tests ran in 151 seconds
After: 340 tests ran in 100 seconds

@davehunt
Copy link
Member Author

@bobsilverberg would you mind taking a look at this and giving feedback?

@@ -7,74 +6,47 @@
import pytest
import requests

pytestmark = [pytest.mark.nondestructive, pytest.mark.skip_selenium]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I didn't know about pytestmark.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobsilverberg
Copy link
Contributor

Very nice, @davehunt, I like it! r+ wc

@davehunt
Copy link
Member Author

davehunt commented Oct 7, 2015

This was merged in 2e60764

@davehunt davehunt closed this Oct 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants