TEST-INFECTED: PROGRAMMERS LOVE WRITING TESTS
The DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.
Abstract
T esting is not closely integrated with development. This prevents you from measuring the progress of development—you can't tell when something starts working or when something stops working. Using JUnit you can cheaply and incrementally build a test suite that will help you measure your progress, spot unintended side effects, and focus your development efforts. THE PROBLEM Every programmer knows they should write tests for their code. Few do. The universal response to “Why not?” is “I'm in too much of a hurry.” This quickly becomes a vicious cycle—the more pressure you feel, the fewer tests you write. The fewer tests you write, the less productive you are and the less stable your code becomes. The less productive and accurate you are, the more pressure you feel. Programmers burn out from just such cycles. Breaking out requires an outside influence. We found the outside influence we needed in a simple testing framework that lets us do a little testing that makes a big difference. The best way to convince you of the value of writing your own tests would be to sit down with you and do a bit of development. Along the way, we would encounter new bugs, catch them with tests, fix them, have them come back, fix them again, and so on. You would see the value of the immediate feedback you get from writing and saving and rerunning your own unit tests.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(1994) · Cited by 21,711
Cited by
Preliminary design of JML: a behavioral interface specification language for java
Leavens, G. T., Baker, A. L., & Ruby, C. (2006) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/1127878.1127884 · Cited by 790
An overview of JML tools and applications
Burdy, L., Cheon, Y., Cok, D. R., Ernst, M. D., Kiniry, J. R., Leavens, G. T., Leino, K. R. M., & Poll, E. (2005) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-004-0167-4 · Cited by 714
Korat: automated testing based on Java predicates
Boyapati, C., Khurshid, S., & Marinov, D. (2002) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/566171.566191 · Cited by 593
JCrasher: an automatic robustness tester for Java
Csallner, C., & Smaragdakis, Y. (2004) · Software: Practice and Experience · doi:10.1002/spe.602 · Cited by 426
“• JCrasher produces test files for JUnit [9]—a popular Java unit testing tool—and can be integrated as a plug-in in the Eclipse IDE.”
MethodOn the effectiveness of the test-first approach to programming
Erdogmus, H., Morisio, M., & Torchiano, M. (2005) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2005.37 · Cited by 311
Korat: automated testing based on Java predicates
Boyapati, C., Khurshid, S., & Marinov, D. (2002) · Proceedings of the 2002 ACM SIGSOFT international symposium on Software testing and analysis · doi:10.1145/566172.566191 · Cited by 302
A Simple and Practical Approach to Unit Testing: The JML and JUnit Way
Cheon, Y., & Leavens, G. T. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-47993-7_10 · Cited by 228
“JUnit is a simple, useful testing framework for Java [4, 23].”
BackgroundMethodCheck 'n' crash: combining static checking and testing
Csallner, C., & Smaragdakis, Y. (2005) · Proceedings of the 27th international conference on Software engineering - ICSE '05 · doi:10.1145/1062455.1062533 · Cited by 220
“The output of JCrasher is a set of test cases for JUnit (a popular Java unit testing tool) [1].”
BackgroundInfluentialA runtime assertion checker for the Java Modeling Language
Cheon, Y. (2018) · doi:10.31274/rtd-180813-9872 · Cited by 213
“By combining JML with JUnit (a popular unit testing tool for Java [8]), the approach was implemented as a unit testing tool (jmlunit), that significantly automates unit testing of Java classes.”
InfluentialAn overview of JML tools and applications1 1www.jmlspecs.org
Burdy, L., Cheon, Y., Cok, D., Ernst, M. D., Kiniry, J., Leavens, G. T., Rustan, K., Leino, M., & Poll, E. (2003) · Electronic Notes in Theoretical Computer Science · doi:10.1016/s1571-0661(04)80810-7 · Cited by 206
Zaidman, A., Van Rompaey, B., van Deursen, A., & Demeyer, S. (2011) · Empirical Software Engineering · doi:10.1007/s10664-010-9143-7 · Cited by 174
“This naming convention is promoted in literature and tutorials [30, 26, 25] and all of our case studies adhered to this naming convention quite strictly.”
Background
Metadata
- Authors
- Beck, K., & Gamma, E.
- Venue
- More Java Gems
- Publisher
- Cambridge University Press
- Published
- 2000-01-28
- Pages
- 357-376
- OpenAlex
- W1689913591
- Cited by
- 274
- References
- 1
- FWCI
- 91.11
- Type
- book chapter
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.