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

131 added tests for channels, jobs, and publications_helper #205

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

Janell-Huyck
Copy link
Contributor

@Janell-Huyck Janell-Huyck commented Sep 14, 2023

Fixes #131

Increase test coverage to over 95% per Coveralls.

The "channels" classes and jobs/applications_job didn't have any tests, as they were simply blank models. I was not 100% certain that we were not using these models somewhere or having the intent to use them in the future, so I made a couple of tests that simply checked if they were inheriting from the correct classes.

The helper "publications_helper" had a bunch of functions in it that didn't have any tests. Created a folder at spec/helpers/publications_helper/ and created a file for each function contained within the helper.

Rewrote the "create_citation" function to improve readability and added extra validation checks for author_citation and authors_array.

@Janell-Huyck Janell-Huyck changed the title added tests for channels and publications_helper added tests for channels, jobs, and publications_helper Sep 14, 2023
@Janell-Huyck Janell-Huyck changed the title added tests for channels, jobs, and publications_helper 131 added tests for channels, jobs, and publications_helper Sep 14, 2023
@crowesn crowesn self-assigned this Sep 19, 2023
Copy link
Contributor

@crowesn crowesn left a comment

Choose a reason for hiding this comment

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

This is great, merging.

@crowesn crowesn merged commit 6c3b4f5 into qa Sep 19, 2023
@crowesn crowesn deleted the 131-increase-test-coverage branch September 19, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase test coverage
2 participants