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

Shift NumericInput Rules test to separate sub-package #1882

Closed
rt4914 opened this issue Sep 24, 2020 · 9 comments · Fixed by #1909 or #1919
Closed

Shift NumericInput Rules test to separate sub-package #1882

rt4914 opened this issue Sep 24, 2020 · 9 comments · Fixed by #1909 or #1919
Assignees
Labels
good first issue This item is good for new contributors to make their pull request. Priority: Nice-to-have This work item is nice to have for its milestone. Z-ibt Temporary label for Ben to keep track of issues he's triaged.

Comments

@rt4914
Copy link
Contributor

rt4914 commented Sep 24, 2020

NumericInputEqualsRuleClassifierProviderTest.kt
NumericInputIsLessThanRuleClassifierProviderTest.kt
NumericInputIsLessThanOrEqualToRuleClassifierProviderTest.kt
NumericInputIsInclusivelyBetweenRuleClassifierProviderTest.kt
NumericInputIsGreaterThanRuleClassifierProviderTest.kt
NumericInputIsGreaterThanOrEqualToRuleClassifierProviderTest.kt

Shift all these to separate package named numberinput in https://github.com/oppia/oppia-android/tree/develop/domain/src/test/java/org/oppia/android/domain/classify/rules

@rt4914 rt4914 added good first issue This item is good for new contributors to make their pull request. Priority: Nice-to-have This work item is nice to have for its milestone. SLoP 2020 labels Sep 24, 2020
@rt4914 rt4914 added this to the Backlog milestone Sep 24, 2020
@soamOne
Copy link
Contributor

soamOne commented Sep 24, 2020

Hello @rt4914, I would like to work on this issue if possible.

@rt4914
Copy link
Contributor Author

rt4914 commented Sep 24, 2020

@BenHenning I have assigned this PR to @soamOne on request.

@soamOne
Copy link
Contributor

soamOne commented Sep 25, 2020

Thanks @rt4914 .

@BenHenning
Copy link
Member

This isn't fully fixed, see: #1909 (comment) and #1909 (comment).

@BenHenning
Copy link
Member

Also, it was moved to the incorrect place: we are using org/oppia/android/domain not org/oppia/domain.

@BenHenning
Copy link
Member

Remaining things that should be done per my quick review of the PR:

  1. The package of the tests needs to match their directory structure
  2. The tests should be under org/oppia/android/domain nor org/oppia/domain
  3. The domain module's BUILD.bazel file should be updated to point to the correct test files if they've moved
  4. The new package name should be numericinput not numberinput for consistency with the interaction name

@rt4914
Copy link
Contributor Author

rt4914 commented Sep 29, 2020

  • The domain module's BUILD.bazel file should be updated to point to the correct test files if they've moved

@BenHenning Just checked this on latest develop too and confirmed that it was done incorrectly.

I have doubt in point 3.

  • Why did all the test cases pass because BUILD.bazel was not updated. Its because of incorrect PR or the test cases are not dependent on this?

@BenHenning
Copy link
Member

@rt4914 we don't run or build Bazel tests in CI currently. Strictly speaking, #3 isn't a hard requirement. I actually only noticed these issues because I was building the Bazel tests locally and it took me a bit to figure out why they weren't building. :) We should fix the Bazel file now that we know it's not setup correctly anymore, and try to keep them up-to-date when we remember.

I'm working on adding the builds to CI, but it's running into some performance hiccups: #1904.

Does this help clarify?

@rt4914
Copy link
Contributor Author

rt4914 commented Sep 29, 2020

@rt4914 we don't run or build Bazel tests in CI currently. Strictly speaking, #3 isn't a hard requirement. I actually only noticed these issues because I was building the Bazel tests locally and it took me a bit to figure out why they weren't building. :) We should fix the Bazel file now that we know it's not setup correctly anymore, and try to keep them up-to-date when we remember.

I'm working on adding the builds to CI, but it's running into some performance hiccups: #1904.

Does this help clarify?

Makes sense. My only concern was about missing changes in bazel file. Thanks for clarification.

BenHenning pushed a commit that referenced this issue Oct 1, 2020
… package is updated to match the directory structure. (#1919)

* fixed the numericinput tests folder

* updated the package of numeric input tests in BUILD.bazel

* fixed imports in numeric input tests

* Revert "fixed imports in numeric input tests"

This reverts commit 5b4a0c9.

* fixed ktlint errors

* fixed indentation

* fixed indentation

* Revert "fixed indentation"

This reverts commit 37a57fd.

* fixed indentation
@BenHenning BenHenning added the Z-ibt Temporary label for Ben to keep track of issues he's triaged. label Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue This item is good for new contributors to make their pull request. Priority: Nice-to-have This work item is nice to have for its milestone. Z-ibt Temporary label for Ben to keep track of issues he's triaged.
4 participants