René's URL Explorer Experiment


Title: Test Smell: it is not a good test practice to use the loop in the test · Issue #1038 · biojava/biojava · GitHub

Open Graph Title: Test Smell: it is not a good test practice to use the loop in the test · Issue #1038 · biojava/biojava

X Title: Test Smell: it is not a good test practice to use the loop in the test · Issue #1038 · biojava/biojava

Description: Hi! We notice that you use the loop structure in your test cases. For example, testQualityScoresIntArray() in FastqToolsTest.java However, using the loop in test cases is not a good test practice. We analyzed the relevant Stack Overflow ...

Open Graph Description: Hi! We notice that you use the loop structure in your test cases. For example, testQualityScoresIntArray() in FastqToolsTest.java However, using the loop in test cases is not a good test practice. ...

X Description: Hi! We notice that you use the loop structure in your test cases. For example, testQualityScoresIntArray() in FastqToolsTest.java However, using the loop in test cases is not a good test practice. ...

Opengraph URL: https://github.com/biojava/biojava/issues/1038

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test Smell: it is not a good test practice to use the loop in the test","articleBody":"Hi!\r\n\r\nWe notice that you use the loop structure in your test cases.\r\nFor example, testQualityScoresIntArray() in FastqToolsTest.java\r\n\u003cimg width=\"497\" alt=\"截屏2022-08-17 下午5 17 26\" src=\"https://user-images.githubusercontent.com/110402847/185083359-94544a0a-e17c-454f-9406-d4fa380e6774.png\"\u003e\r\n\r\nHowever, using the loop in test cases is not a good test practice.\r\nWe analyzed the relevant Stack Overflow posts and summarized four potential negatives it brings:\r\n1. Loops make the test case more complex\r\n2. In most cases, a loop can be replaced with a data-driven test that is more readable.\r\n3. Loops break the assert-for-one-thing thumb rule. I don't mean a single assert statement.\r\n4. When a test fails, knowing the reason is more complicated.\r\n\r\nSolution:\r\nTo avoid using the loop in the test, JUnit provides an annotation (i.e., @ParameteredTest), enabling a test case to run multiple times with different parameters.\r\nWe provide a usage example here:\r\n\u003cimg width=\"622\" alt=\"image\" src=\"https://user-images.githubusercontent.com/110402847/185083811-1d731ae3-0188-475f-b378-714beb492e7a.png\"\u003e\r\n","author":{"url":"https://github.com/TestSmell","@type":"Person","name":"TestSmell"},"datePublished":"2022-08-17T09:23:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1038/biojava/issues/1038"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d44aa6c9-347b-dd11-dd90-f0144857dcbe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B16:13E147:2E74EB7:3D65864:69744434
html-safe-nonce9674ac8d33b02212b7fd29c6f0c777e805cbbff6e87a6cbe9de4ab4958eacb26
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjE2OjEzRTE0NzoyRTc0RUI3OjNENjU4NjQ6Njk3NDQ0MzQiLCJ2aXNpdG9yX2lkIjoiNTI2NTM1MTA5MzMxMTQxNjg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac51d927361cc2499e9ba0ad70f6470be2b19a342f2406e9e8f7dbaa5de2f9421e
hovercard-subject-tagissue:1341447386
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/biojava/biojava/1038/issue_layout
twitter:imagehttps://opengraph.githubassets.com/413181a02dc4cf2ba5a306c517d3233e0fabba3b4cedb69d141fdfadeec62997/biojava/biojava/issues/1038
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/413181a02dc4cf2ba5a306c517d3233e0fabba3b4cedb69d141fdfadeec62997/biojava/biojava/issues/1038
og:image:altHi! We notice that you use the loop structure in your test cases. For example, testQualityScoresIntArray() in FastqToolsTest.java However, using the loop in test cases is not a good test practice. ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTestSmell
hostnamegithub.com
expected-hostnamegithub.com
Nonee0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c
turbo-cache-controlno-preview
go-importgithub.com/biojava/biojava git https://github.com/biojava/biojava.git
octolytics-dimension-user_id237402
octolytics-dimension-user_loginbiojava
octolytics-dimension-repository_id9199359
octolytics-dimension-repository_nwobiojava/biojava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9199359
octolytics-dimension-repository_network_root_nwobiojava/biojava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fe7e2e8de6e57740bca50402351ea656f7a4bf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/biojava/biojava/issues/1038#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbiojava%2Fbiojava%2Fissues%2F1038
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbiojava%2Fbiojava%2Fissues%2F1038
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=biojava%2Fbiojava
Reloadhttps://patch-diff.githubusercontent.com/biojava/biojava/issues/1038
Reloadhttps://patch-diff.githubusercontent.com/biojava/biojava/issues/1038
Reloadhttps://patch-diff.githubusercontent.com/biojava/biojava/issues/1038
biojava https://patch-diff.githubusercontent.com/biojava
biojavahttps://patch-diff.githubusercontent.com/biojava/biojava
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fbiojava%2Fbiojava
Fork 395 https://patch-diff.githubusercontent.com/login?return_to=%2Fbiojava%2Fbiojava
Star 623 https://patch-diff.githubusercontent.com/login?return_to=%2Fbiojava%2Fbiojava
Code https://patch-diff.githubusercontent.com/biojava/biojava
Issues 67 https://patch-diff.githubusercontent.com/biojava/biojava/issues
Pull requests 2 https://patch-diff.githubusercontent.com/biojava/biojava/pulls
Actions https://patch-diff.githubusercontent.com/biojava/biojava/actions
Security 0 https://patch-diff.githubusercontent.com/biojava/biojava/security
Insights https://patch-diff.githubusercontent.com/biojava/biojava/pulse
Code https://patch-diff.githubusercontent.com/biojava/biojava
Issues https://patch-diff.githubusercontent.com/biojava/biojava/issues
Pull requests https://patch-diff.githubusercontent.com/biojava/biojava/pulls
Actions https://patch-diff.githubusercontent.com/biojava/biojava/actions
Security https://patch-diff.githubusercontent.com/biojava/biojava/security
Insights https://patch-diff.githubusercontent.com/biojava/biojava/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/biojava/biojava/issues/1038
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/biojava/biojava/issues/1038
Test Smell: it is not a good test practice to use the loop in the testhttps://patch-diff.githubusercontent.com/biojava/biojava/issues/1038#top
https://patch-diff.githubusercontent.com/tmrpavan
https://github.com/TestSmell
https://github.com/TestSmell
TestSmellhttps://github.com/TestSmell
on Aug 17, 2022https://github.com/biojava/biojava/issues/1038#issue-1341447386
https://user-images.githubusercontent.com/110402847/185083359-94544a0a-e17c-454f-9406-d4fa380e6774.png
https://user-images.githubusercontent.com/110402847/185083811-1d731ae3-0188-475f-b378-714beb492e7a.png
tmrpavanhttps://patch-diff.githubusercontent.com/tmrpavan
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.