Mattermost-server: Migrate tests from "store/storetest/job_store.go" to use testify

Created on 15 Oct 2019  路  7Comments  路  Source: mattermost/mattermost-server

Mattermost is migrating its server tests from using the t.Fatal method calls on their checks to use the testify toolkit. The goal of this migration is to improve the readability of the tests, making them more concise and meaningful. This Help Wanted issue is to migrate the tests in the store/storetest/job_store.go file.

The expected way to migrate this is to go to the store/storetest/job_store.go file and modify the calls to t.Fatal and the condition checks that lead to them, replacing them with calls to the the require package if a failure should stop the execution of the test, or the assert package if it shouldn't.

Example: mattermost/mattermost-server#12039

If you have questions about the ticket or you need any help, feel free to contact miguel.delacruz or jesus.espino in https://community.mattermost.com/


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-19450

AreTechnical Debt Easy Good First Issue Help Wanted TecGo

All 7 comments

Can I take it up.?? Thanks.

Go for it :smiley:

Ill take this one

Awesome, Thanks @QamarFarooq, probably you can take a look to the existing PR.

I'd like to take a look if this still needs to be done.

I had to reinstall my windows cuz it got infected. Been setting up server, so i will get to it soon

I'd like to take a look if this still needs to be done.

Was this page helpful?
0 / 5 - 0 ratings