Skip to main content

A Tutorial on Using and Extending the EvoSuite Search-Based Test Generator

  • Conference paper
  • First Online:
Search-Based Software Engineering (SSBSE 2018)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 11036))

Included in the following conference series:

Abstract

EvoSuite is an automated unit test generation tool for Java. It takes as input a Java class under test, and produces JUnit tests optimised for code coverage, and enhanced with regression assertions, as output. This paper is a tutorial on how to use EvoSuite to generate tests, on how to build and extend EvoSuite, and how to use EvoSuite to run experiments on search-based testing.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 74.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://maven.apache.org/.

  2. 2.

    http://evosuite.org/files/tutorial/Tutorial_Stack.zip.

  3. 3.

    Note that, as is common, wrapped lines at the commandline are indicated with a backslash “\” in this paper. These lines are only wrapped to fit the text in the paper, you can also type these commands on a single line.

  4. 4.

    http://www.evosuite.org/documentation/tutorial-part-2/.

  5. 5.

    https://matplotlib.org/.

References

  1. Arcuri, A., Briand, L.: A Hitchhiker’s guide to statistical tests for assessing randomized algorithms in software engineering. Softw. Test. Verif. Reliab. (STVR) 24(3) (2012)

    Google Scholar 

  2. Arcuri, A., Campos, J., Fraser, G.: Unit test generation during software development: EvoSuite plugins for Maven, IntelliJ and Jenkins. In: IEEE International Conference on Software Testing, Verification, and Validation (ICST) (2016)

    Google Scholar 

  3. Arcuri, A., Fraser, G.: Parameter tuning or default values? An empirical investigation in search-based software engineering. Empir. Softw. Eng. (EMSE) 18(3), 594–623 (2013)

    Article  Google Scholar 

  4. Arcuri, A., Fraser, G., Galeotti, J.P.: Automated unit test generation for classes with environment dependencies. In: ACM/IEEE International Conference on Automated Software Engineering (ASE), pp. 79–90. ACM (2014)

    Google Scholar 

  5. Arcuri, A., Fraser, G., Galeotti, J.P.: Generating TCP/UDP network data for automated unit test generation. In: ACM SIGSOFT Symposium on the Foundations of Software Engineering (FSE), pp. 155–165 (2015)

    Google Scholar 

  6. Fraser, G., Arcuri, A.: Whole test suite generation. IEEE Trans. Softw. Eng. (TSE) 39(2), 276–291 (2013)

    Article  Google Scholar 

  7. Fraser, G., Arcuri, A.: A large-scale evaluation of automated unit test generation using EvoSuite. ACM Trans. Softw. Eng. Methodol. (TOSEM) 24(2), 8 (2014)

    Article  Google Scholar 

  8. Fraser, G., Arcuri, A.: Achieving scalable mutation-based generation of whole test suites. Empir. Softw. Eng. 20(3), 783–812 (2015)

    Article  Google Scholar 

  9. Panichella, A., Kifetew, F.M., Tonella, P.: Reformulating branch coverage as a many-objective optimization problem. In: IEEE International Conference on Software Testing, Verification and Validation (ICST), pp. 1–10. IEEE (2015)

    Google Scholar 

  10. Rojas, J.M., Campos, J., Vivanti, M., Fraser, G., Arcuri, A.: Combining multiple coverage criteria in search-based unit test generation. In: Barros, M., Labiche, Y. (eds.) SSBSE 2015. LNCS, vol. 9275, pp. 93–108. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-22183-0_7

    Chapter  Google Scholar 

  11. Rojas, J.M., Fraser, G., Arcuri, A.: Seeding strategies in search-based unit test generation. Softw. Test. Verif. Reliab. 26(5), 366–401 (2016)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gordon Fraser .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Fraser, G. (2018). A Tutorial on Using and Extending the EvoSuite Search-Based Test Generator. In: Colanzi, T., McMinn, P. (eds) Search-Based Software Engineering. SSBSE 2018. Lecture Notes in Computer Science(), vol 11036. Springer, Cham. https://doi.org/10.1007/978-3-319-99241-9_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-99241-9_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-99240-2

  • Online ISBN: 978-3-319-99241-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics