DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Migrate, Modernize and Build Java Web Apps on Azure: This live workshop will cover methods to enhance Java application development workflow.

Modern Digital Website Security: Prepare to face any form of malicious web activity and enable your sites to optimally serve your customers.

Kubernetes in the Enterprise: The latest expert insights on scaling, serverless, Kubernetes-powered AI, cluster security, FinOps, and more.

E-Commerce Development Essentials: Considering starting or working on an e-commerce business? Learn how to create a backend that scales.

The Latest Testing, Tools, and Frameworks Topics

article thumbnail
Popular Enterprise Architecture Frameworks
Appropriate EA framework selection is critical for Enterprise Architects based on the Organization's needs and goals.
October 24, 2023
by Ravi Kiran Mallidi DZone Core CORE
· 3,133 Views · 4 Likes
article thumbnail
Importance of Big Data in Software Testing
Discover the impact of Big Data on Software Testing. Learn how vast data sets can improve testing strategies and drive software development efficiency.
October 24, 2023
by Akash Singh
· 1,867 Views · 3 Likes
article thumbnail
Enhance Testing Workflows With HTML Allure Reports in Cypress
Cypress is a fast and user-friendly JavaScript testing framework that generates detailed Allure reports with screenshots.
October 24, 2023
by Kailash Pathak
· 1,742 Views · 3 Likes
article thumbnail
Automating Safety
This article explores preventing accidental production profile invocation in test automation with 12-factor and chaos engineering strategies.
October 24, 2023
by Ashok Gudise
· 1,816 Views · 1 Like
article thumbnail
CXOs' Guide to SDLC: Processes, Models, and Best Practices
CXOs guide to the software development lifecycle (SDLC) processes, models, and best practices — to lead effectively and efficiently.
October 24, 2023
by Avya Chaudhary
· 1,605 Views · 1 Like
article thumbnail
AWS Cost Optimization: Best Practices and Management Tools
Cloud cost optimization is vital considering most businesses are embracing Cloud solutions to deliver high-quality services while maintaining operational cost efficiency.
October 24, 2023
by Anthony Neto
· 1,768 Views · 1 Like
article thumbnail
7 Popular Unit Test Naming Conventions
The article presents a compiled list of unit tests naming strategy that one could follow for naming their unit tests. The article is intended to be a quick reference instead of going through multiple great pages such as following. That said, to know greater details, please feel free access one of these pages listed below and know for yourself. What are some popular naming conventions for unit tests? Unit Tests Naming Best Practices GivenWhenThen Technique How to Unit Test Stream Pipelines and Lambdas CI/CD Pipeline Testing Following are 7 popular unit tests naming conventions that are found to be used by majority of developers and compiled from above pages: MethodName_StateUnderTest_ExpectedBehavior: There are arguments against this strategy that if method names change as part of code refactoring than test name like this should also change or it becomes difficult to comprehend at a later stage. Following are some of the example: isAdult_AgeLessThan18_False withdrawMoney_InvalidAccount_ExceptionThrown admitStudent_MissingMandatoryFields_FailToAdmit MethodName_ExpectedBehavior_StateUnderTest: Slightly tweaked from above, but a section of developers also recommend using this naming technique. This technique also has the disadvantage that if method names get changed, it becomes difficult to comprehend at a later stage. Following is how tests in first example would read like if named using this technique: isAdult_False_AgeLessThan18 withdrawMoney_ThrowsException_IfAccountIsInvalid admitStudent_FailToAdmit_IfMandatoryFieldsAreMissing test[Feature being tested]: This one makes it easy to read the test as the feature to be tested is written as part of test name. Although, there are arguments that the “test” prefix is redundant. However, some sections of developer love to use this technique. Following is how the above tests would read like if named using this technique: testIsNotAnAdultIfAgeLessThan18 testFailToWithdrawMoneyIfAccountIsInvalid testStudentIsNotAdmittedIfMandatoryFieldsAreMissing Feature to be tested: Many suggest that it is better to simply write the feature to be tested because one is anyway using annotations to identify method as test methods. It is also recommended for the reason that it makes unit tests as an alternate form of documentation and avoids code smells. Following is how tests in first example would read like if named using this technique: IsNotAnAdultIfAgeLessThan18 FailToWithdrawMoneyIfAccountIsInvalid StudentIsNotAdmittedIfMandatoryFieldsAreMissing Should_ExpectedBehavior_When_StateUnderTest: This technique is also used by many as it makes it easy to read the tests. Following is how tests in first example would read like if named using this technique: Should_ThrowException_When_AgeLessThan18 Should_FailToWithdrawMoney_ForInvalidAccount Should_FailToAdmit_IfMandatoryFieldsAreMissing When_StateUnderTest_Expect_ExpectedBehavior: Following is how tests in first example would read like if named using this technique: When_AgeLessThan18_Expect_isAdultAsFalse When_InvalidAccount_Expect_WithdrawMoneyToFail When_MandatoryFieldsAreMissing_Expect_StudentAdmissionToFail Given_Preconditions_When_StateUnderTest_Then_ExpectedBehavior: This approach is based on a naming convention developed as part of Behavior-Driven Development (BDD). The idea is to break down the tests into three part such that one could come up with preconditions, state under test and expected behavior to be written in the above format. Following is how tests in first example would read like if named using this technique: Given_UserIsAuthenticated_When_InvalidAccountNumberIsUsedToWithdrawMoney_Then_TransactionsWillFail My personal favorite is naming unit tests based on the writing features of the class under test. It helps me to make sure that a class follows single responsibility. It also aids a great deal in code refactoring. Related: How to Integrate Cucumber for Spring Boot Integration Tests
October 23, 2023
by Ajitesh Kumar
· 700,366 Views · 31 Likes
article thumbnail
AWS NoSQL Performance Lab Using Python
This is a coding lab to evaluate the performance of AWS-managed NoSQL databases such as DynamoDB, Cassandra, Redis, and MongoDB using Python.
October 23, 2023
by David Shilman DZone Core CORE
· 3,688 Views · 6 Likes
article thumbnail
Azure DevOps vs. AWS DevOps: Comparing Two Powerhouses in Cloud Development and Operations
Discover the differences between Azure DevOps and AWS DevOps. Learn how our expert consulting services can enhance your software development process.
October 23, 2023
by Pritesh Patel
· 2,513 Views · 4 Likes
article thumbnail
Deploying To Azure From Azure DevOps Without Secrets
Optimize Azure deployment using Workload Identity Federation for automated, secure, seamless CI/CD in DevOps without secret credentials.
October 23, 2023
by Alexandre Nedelec
· 2,073 Views · 1 Like
article thumbnail
Improving Unit Test Maintainability
Creating unit tests could be painful sometimes. Let's see how to improve the maintainability of unit tests with EasyRandom.
October 20, 2023
by Francisco Moreno DZone Core CORE
· 7,372 Views · 18 Likes
article thumbnail
Enhancing Customer Experience: Streamlining Orders With Custom Email Notifications in IBM Cloud
IBM Cloud allows customers to simplify their order management process by using custom email notifications through Event Notifications.
October 19, 2023
by Pradeep Gopalgowda
· 3,049 Views · 2 Likes
article thumbnail
Cypress Testing Library: Getting Started Tutorial
Discover how Cypress Testing Library improves your testing strategy. Create adaptable tests that focus on business behavior to ensure code quality verification.
October 18, 2023
by Enrique A Decoss
· 2,657 Views · 2 Likes
article thumbnail
Streamlining Success: The Crucial Role of Web Services Testing
In this article, we explore the significance of web services testing and its pivotal role in delivering high-quality software solutions.
October 18, 2023
by Aditya Bhuyan
· 3,557 Views · 1 Like
article thumbnail
The 3 Stages of an Effective Test Data Strategy
Testing is crucial for delivering quality applications quickly, but providing the right test data remains a major bottleneck.
October 17, 2023
by Rich Jordan
· 3,332 Views · 2 Likes
article thumbnail
Enhanced Security for Your Secrets With AWS Secrets Manager
AWS Secrets Manager secures credentials with encryption and access controls while providing robust protection against threats.
October 17, 2023
by Raghava Dittakavi
· 3,719 Views · 2 Likes
article thumbnail
AWS Lambda Pricing for a Serverless Application
In this blog post, we’ll briefly compare AWS Lambda Pricing with other Cloud providers and discuss the key elements of the AWS Lambda pricing model.
October 16, 2023
by Rahul Shivalkar
· 3,245 Views · 1 Like
article thumbnail
Nebraska.Code() — Developing in the Great Plains
With topics ranging from OSS contribution to getting along with your coworkers to using Azure Key Vault at scale, there was a lot of knowledge shared.
October 16, 2023
by Dwayne McDaniel
· 3,344 Views · 1 Like
article thumbnail
Autoscaling Kubernetes Worker Nodes With Karpenter
How to set up and use Karpenter for autoscaling and collecting underutilized spot and on-demand instances for AWS EKS.
October 16, 2023
by Anadi Misra
· 3,625 Views · 2 Likes
article thumbnail
Unlocking the Cloud's Best-Kept Secret: Maximize Your Website's Potential With AWS S3 Static Hosting
The article highlights the advantages of hosting static websites on S3, such as high availability, scalability, unlimited bandwidth, and robust security features.
October 16, 2023
by Satrajit Basu DZone Core CORE
· 2,439 Views · 1 Like
  • Previous
  • ...
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • ...
  • Next

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: