Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issue/#91 re-structure tests #224

Merged
merged 13 commits into from
Sep 6, 2020

Conversation

born-to-be-mad
Copy link
Contributor

Final results: 471 tests = 393 API tests + 78 internal tests

Some additional points:

  1. Currently latest JUnit 4 Generation is used - 4.12 .
    What do you think about using 5G(jupiter)?
    It will allow to use more functional approach(lambdas) even for testing itself. Ane even more: extensions, conditions, parameterized tests, dynamic tests and etc.

  2. What if we apply grouping: categories in JUnit 4G or tags in JUnit 5G?
    F.e. we can split all test to 2 categories/tags:

  • api
  • internal

From the documentation :
tags are used to filter which tests are executed for a given test plan. For example, a development team may tag tests with values such as "fast", "slow", "ci-server", etc. and then supply a list of tags to be used for the current test plan, potentially dependent on the current environment.

@coveralls
Copy link

coveralls commented Jun 19, 2020

Coverage Status

Coverage increased (+0.03%) to 99.704% when pulling 44520f0 on dma1979:issue/#91-restructure-tests into 2be61c5 on amaembo:master.

@amaembo
Copy link
Owner

amaembo commented Aug 2, 2020

Please resolve conflicts.

# Conflicts:
#	src/test/java/one/util/streamex/TestHelpers.java
#	src/test/java/one/util/streamex/api/DoubleStreamExTest.java
#	src/test/java/one/util/streamex/api/IntStreamExTest.java
#	src/test/java/one/util/streamex/api/LongStreamExTest.java
#	wiki/CHANGES.md
@born-to-be-mad
Copy link
Contributor Author

Final improvements for StreamEx tests:

  • 477 tests were split to 2 categories
    • 399 API tests
    • 78 internal tests
  • native junit assertThrows(since 4.13) is used

@born-to-be-mad
Copy link
Contributor Author

Tagir, could you please give your feedback?

- move some asserts to API tests.
- some cosmetics(empty line ane etc.)
- remove explicit Assert qualifiers
- remove duplicated test from internal
@born-to-be-mad born-to-be-mad requested a review from amaembo August 22, 2020 19:50
Copy link
Owner

@amaembo amaembo left a comment

Choose a reason for hiding this comment

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

Seems some qualifiers were added due to move refactoring...

- explicit qualifiers
@born-to-be-mad born-to-be-mad requested a review from amaembo August 31, 2020 11:23
- explicit qualifiers
@amaembo amaembo merged commit 3a7a4f2 into amaembo:master Sep 6, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants