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

Enforce failure reasons in tests #704

Closed
driver733 opened this issue Feb 21, 2018 · 34 comments
Closed

Enforce failure reasons in tests #704

driver733 opened this issue Feb 21, 2018 · 34 comments
Labels

Comments

@driver733
Copy link
Contributor

driver733 commented Feb 21, 2018

I think that it would be great if we could enforce the usage of failure reasons in tests. If a test uses a test method that can have a failure reason and it does not use it, then the build should fail.

@0crat
Copy link
Collaborator

0crat commented Feb 21, 2018

@yegor256/z please, pay attention to this issue

@yegor256
Copy link
Owner

@driver733 how is it technically possible?

@driver733
Copy link
Contributor Author

driver733 commented Feb 21, 2018

@yegor256 We could, for instance, ban this method
<T> void assertThat(T actual, Matcher<? super T> matcher)
then, you would be directed to use one of these methods instead
<T> void assertThat(java.lang.String reason, boolean assertion)
<T> void assertThat(java.lang.String reason, T actual, Matcher<? super T> matcher)

We can extrapolate this logic on other test methods.

@yegor256
Copy link
Owner

@driver733 "ban" how?

@driver733
Copy link
Contributor Author

driver733 commented Feb 21, 2018

@yegor256 Could we use Checkstyle's RegexpMultiline to create a custom checkstyle check for that?

@yegor256
Copy link
Owner

@driver733 I doubt it will work... can you try?

@driver733
Copy link
Contributor Author

@yegor256 Sure, I will see what I can do.

@driver733
Copy link
Contributor Author

driver733 commented Feb 21, 2018

@yegor256 Actually, we could use this

<module name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainMethodCheck">
      <property name="methodName" value="assert(True|False)"/>
      <property name="argumentCount" value="1"/>
    </module>

@yegor256 yegor256 added the bug label Feb 21, 2018
@yegor256
Copy link
Owner

@driver733 yes, that will work, thanks

@0crat 0crat added the scope label Feb 21, 2018
@0crat
Copy link
Collaborator

0crat commented Feb 21, 2018

Job #704 is now in scope, role is DEV

@0crat
Copy link
Collaborator

0crat commented Feb 21, 2018

Bug was reported, see §29: +15 points just awarded to @driver733/z, total is +335

@0crat
Copy link
Collaborator

0crat commented Mar 6, 2018

The job #704 assigned to @flslkxtc/z, here is why. The budget is 30 minutes, see §4. Please, read §8 and §9. If the task is not clear, read this and this.

@smyachenkov
Copy link
Contributor

@driver733 @yegor256 Cactoos project uses Qulice checkstyle rules, i think it more of a Qulice project issue than cactoos.

@0crat
Copy link
Collaborator

0crat commented Mar 11, 2018

@flslkxtc/z this job was assigned to you 5 days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@0crat
Copy link
Collaborator

0crat commented Mar 16, 2018

The user @flslkxtc/z resigned from #704, please stop working. Reason for job resignation: It is older than 10 days, see §8

@0crat
Copy link
Collaborator

0crat commented Mar 16, 2018

Resigned on delay, see §8: -30 points just awarded to @flslkxtc/z

@0crat
Copy link
Collaborator

0crat commented Mar 18, 2018

The job #704 assigned to @neonailol/z, here is why. The budget is 30 minutes, see §4. Please, read §8 and §9. If the task is not clear, read this and this.

neonailol added a commit to neonailol/cactoos that referenced this issue Mar 20, 2018
neonailol added a commit to neonailol/cactoos that referenced this issue Mar 20, 2018
@neonailol
Copy link
Contributor

@0crat waiting

@0crat
Copy link
Collaborator

0crat commented Mar 27, 2018

There is an unrecoverable failure on my side. Please, submit it here:

com.amazonaws.http.AmazonHttpClient$RequestExecutor[1113] com.amazonaws.SdkClientException: Unable to execute HTTP request: null
sun.nio.ch.FileChannelImpl[110] java.nio.channels.ClosedChannelException: null

1.0-SNAPSHOT

@neonailol
Copy link
Contributor

@0crat waiting

@0crat
Copy link
Collaborator

0crat commented Mar 27, 2018

@0crat waiting (here)

@neonailol The impediment for #704 was registered successfully by @neonailol/z

@llorllale
Copy link
Contributor

@neonailol are you working on this? I know that PR #702 was merged, but it doesn't really address this requirement

@llorllale
Copy link
Contributor

@neonailol ping

1 similar comment
@llorllale
Copy link
Contributor

@neonailol ping

@neonailol
Copy link
Contributor

neonailol commented May 14, 2018

@llorllale pr was declined to merge with inconvenient reason, so this task is open

@llorllale
Copy link
Contributor

@neonailol are you still interested in completing this task?

@neonailol
Copy link
Contributor

@llorllale yes, but I don't think that suggested solution #744 (comment) is a good one

@llorllale
Copy link
Contributor

@neonailol please move forward with this task

neonailol added a commit to neonailol/cactoos that referenced this issue May 22, 2018
@neonailol
Copy link
Contributor

@llorllale submitted #899

neonailol added a commit to neonailol/cactoos that referenced this issue May 22, 2018
neonailol added a commit to neonailol/cactoos that referenced this issue May 28, 2018
neonailol added a commit to neonailol/cactoos that referenced this issue May 28, 2018
neonailol added a commit to neonailol/cactoos that referenced this issue May 29, 2018
@llorllale
Copy link
Contributor

@driver733 this was implemented in PR #899

@0crat
Copy link
Collaborator

0crat commented Dec 8, 2018

Job #704 is not in the agenda of @neonailol/z, can't retrieve data and time of add

@0crat 0crat removed the scope label Dec 8, 2018
@0crat
Copy link
Collaborator

0crat commented Dec 8, 2018

The project doesn't have enough funds, can't make a payment

@0crat
Copy link
Collaborator

0crat commented Dec 8, 2018

The job #704 is now out of scope

@0crat
Copy link
Collaborator

0crat commented Dec 8, 2018

Order was finished: +30 point(s) just awarded to @neonailol/z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants