Skip to main content

Survey: Spring users rate code high in quality, maintainability and test coverage

A recent Spring Framework User Survey of Java developers found that Spring/Spring Boot users rate their code higher in quality, maintainability and test coverage that non-Spring users.

The survey of 450 Java developers also found that Spring users spend 25% of their time on tests, while non-Spring users spend 20% of their time on tests.

Mathew Lodge, CEO of AI-powered automated test solution provider DiffBlue, which sponsored the survey, said the results are an example of how tooling can help organizations adopt a certain way of working. “Everyone talks about cultural change, and the culture of testing, and good tooling helps people do the right things,” he said. “Spring has really great support for unit testing and testing in general.”

RELATED CONTENT: What’s in Java 16

Lodge noted that respondents said the primary benefit of Spring/Spring Boot is that it saves them time, but the second most important benefit to them is that the framework makes it easier for developers to write unit tests in the first place. 

But, paradoxically, even spending that much time writing and maintaining tests, 45% of the survey respondents say they have less than 50% test coverage of their code; 37% said their coverage falls between 26% and 50%; while another 6% said they have complete code coverage. Of that last 6%, all are Spring users. “That just highlights how difficult it is to do unit testing,” Lodge said.

Some in the industry argue that 100% code coverage isn’t necessary; rather, organizations should focus on the areas that have the greatest impact on the user and on security. But Lodge said, “The danger is you don’t really know what you don’t know in that situation.”

He went on to say, “We try and write the smallest number of tests possible to get the maximum coverage, because you want to have as few tests as possible, so they’re easier to understand. And, you don’t get … 100 tests failing when you change one thing.”

Hand in hand with that, developers were asked to describe their organization’s code in the following terms that apply — reliable, maintainable, testable, portable, automated and modern. Most (51%) respondents described their code as reliable; 50% chose modern and 40% chose maintainable. And, despite respondents indicating they spend a quarter of their time on testing, only 37% described their code as testable. Spring users were most likely to describe their code as maintainable.

The survey report noted that DiffBlue Cover was described by 39% of respondents as “very useful,” trailing only JUnit (44%) and TestNG (40%). Parasoft’s JTest was fourth at 38%.

The survey, though, did not answer this question: Does Spring help developers be better testers, or do better testers use Spring? Spring/Spring Boot developers, according to the survey report, tend to value unit testing more highly than non-Spring users; tend to have higher quality and more maintainable code, and have better code coverage in their organizations.

Read the complete survey here.

The post Survey: Spring users rate code high in quality, maintainability and test coverage appeared first on SD Times.



from SD Times https://ift.tt/3drqXJY

Comments

Popular posts from this blog

Difference between Web Designer and Web Developer Neeraj Mishra The Crazy Programmer

Have you ever wondered about the distinctions between web developers’ and web designers’ duties and obligations? You’re not alone! Many people have trouble distinguishing between these two. Although they collaborate to publish new websites on the internet, web developers and web designers play very different roles. To put these job possibilities into perspective, consider the construction of a house. To create a vision for the house, including the visual components, the space planning and layout, the materials, and the overall appearance and sense of the space, you need an architect. That said, to translate an idea into a building, you need construction professionals to take those architectural drawings and put them into practice. Image Source In a similar vein, web development and design work together to create websites. Let’s examine the major responsibilities and distinctions between web developers and web designers. Let’s get going, shall we? What Does a Web Designer Do?

A guide to data integration tools

CData Software is a leader in data access and connectivity solutions. It specializes in the development of data drivers and data access technologies for real-time access to online or on-premise applications, databases and web APIs. The company is focused on bringing data connectivity capabilities natively into tools organizations already use. It also features ETL/ELT solutions, enterprise connectors, and data visualization. Matillion ’s data transformation software empowers customers to extract data from a wide number of sources, load it into their chosen cloud data warehouse (CDW) and transform that data from its siloed source state, into analytics-ready insights – prepared for advanced analytics, machine learning, and artificial intelligence use cases. Only Matillion is purpose-built for Snowflake, Amazon Redshift, Google BigQuery, and Microsoft Azure, enabling businesses to achieve new levels of simplicity, speed, scale, and savings. Trusted by companies of all sizes to meet

2022: The year of hybrid work

Remote work was once considered a luxury to many, but in 2020, it became a necessity for a large portion of the workforce, as the scary and unknown COVID-19 virus sickened and even took the lives of so many people around the world.  Some workers were able to thrive in a remote setting, while others felt isolated and struggled to keep up a balance between their work and home lives. Last year saw the availability of life-saving vaccines, so companies were able to start having the conversation about what to do next. Should they keep everyone remote? Should they go back to working in the office full time? Or should they do something in between? Enter hybrid work, which offers a mix of the two. A Fall 2021 study conducted by Google revealed that over 75% of survey respondents expect hybrid work to become a standard practice within their organization within the next three years.  Thus, two years after the world abruptly shifted to widespread adoption of remote work, we are declaring 20