Skip to content
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

[BD-18] Standardize the make test targets #14

Merged

Conversation

emZubair
Copy link
Contributor

Standardize the make test targets

Added target for test & clean

Packages added

  • pytest-cov

@openedx-webhooks
Copy link

Thanks for the pull request, @emZubair! I've created BLENDED-455 to keep track of it in Jira. More details are on the BD-18 project page.

When this pull request is ready, tag your edX technical lead.

@openedx-webhooks openedx-webhooks added blended PR is managed through 2U's blended developmnt program needs triage labels Jul 16, 2020
@emZubair emZubair marked this pull request as ready for review July 16, 2020 11:45
@emZubair emZubair force-pushed the zubair/EDE-684_standarize_make_test_target branch 3 times, most recently from c75051f to 573c263 Compare July 20, 2020 14:00
Makefile Outdated
@@ -1,6 +1,45 @@
.PHONY: clean upgrade test quality
Copy link
Contributor

Choose a reason for hiding this comment

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

Add, all the targets you added below to this list.

Makefile Outdated
pip-sync requirements/base.txt requirements/constraints.txt requirements/test.txt requirements/travis.txt

quality-js: ## Run JavaScript linter
echo "Tool not configured for quality target"
Copy link
Contributor

Choose a reason for hiding this comment

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

If it's not setup for JS Quality, just remove the target so we can find repos with this issue in the future.

package.json Outdated
@@ -0,0 +1,17 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't make the empty test, if there are no tests to run here, that's useful information that something like this would hide. Go ahead and remove the package.json and package-lock.json files for now along with the test-js makefile target for now.

quality-js: ## Run JavaScript linter
echo "Tool not configured for quality target"

quality-python: ## Run python linters
Copy link
Contributor

Choose a reason for hiding this comment

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

Update the travis file to use this target instead of having it's own copy of the same commands. Leaving it like it is now might result in drift if one of the targets is updated but not the other.

@emZubair emZubair force-pushed the zubair/EDE-684_standarize_make_test_target branch from 573c263 to 4f2d437 Compare July 21, 2020 06:44
@emZubair emZubair requested a review from feanil July 21, 2020 06:45
@emZubair
Copy link
Contributor Author

@feanil updated PR.

@emZubair emZubair force-pushed the zubair/EDE-684_standarize_make_test_target branch from 4f2d437 to 0ff066f Compare July 21, 2020 07:16
@feanil feanil merged commit 2b59879 into openedx:master Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blended PR is managed through 2U's blended developmnt program merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants