skip to main content
10.1145/2034654.2034662acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
research-article

Model-based testing of data types with side effects

Published:23 September 2011Publication History

ABSTRACT

Data types are the core of many applications, and libraries offering implementations of data types should better be solid and well tested. Testing purely functional data types with QuickCheck provides a complete test method for data types, but establishing a complete test method for data types with side-effects is still an open issue. In this paper we show how we can use a stateful QuickCheck model to establish a complete test method for any data type. Considering side effects allows us to move from the purely functional world to the imperative world, as needed to face the testing of data types implementations in languages such as C. We therefore applied our method to some of the data types provided by the well-known GNOME Glib library.

Skip Supplemental Material Section

Supplemental Material

_talk4.mp4

mp4

53 MB

References

  1. Arts, T., Castro, L.M., Hughes, J.: Testing Erlang Data Types with Quviq QuickCheck. In: Proceedings of the ACM SIGPLAN Workshop on Erlang, ACM Press (2008) Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Lamb, D.A.: IDL: Sharing intermediate representations. ACM Transactions on Programming Languages and Systems 9(3) (1987) 297--318 Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Ericsson AB: Yecc: LALR-1 parser generator library for Erlang/OTP. http://www.erlang.org/doc/man/yecc.htmlGoogle ScholarGoogle Scholar
  4. Johnson, S.C.: Yacc: Yet another compiler-compiler. Technical report, AT&T Bell Laboratories (1979)Google ScholarGoogle Scholar
  5. Arts, T., Hughes, J., Johansson, J., Wiger, U.: Testing Telecoms Software with Quviq QuickCheck. In: Proceedings of the ACM SIGPLAN Workshop on Erlang, ACM Press (2006) Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Castro, L.M., Arts, T.: Testing Data Consistency of Data-Intensive Applications Using QuickCheck. Electronic Notes in Theoretical Computer Science 271 (2011) 41--62 Proceedings of the Tenth Spanish Conference on Programming and Languages (PROLE 2010). Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. King, J.C.: Symbolic execution and program testing. Communications of the ACM 19(7) (1976) 385--394 Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. GNOME: Glib reference manual. http://library.gnome.org/devel/glib/stable/Google ScholarGoogle Scholar
  9. Free Software Foundation: GNU Project. http://www.gnu.orgGoogle ScholarGoogle Scholar
  10. Ericsson AB: Erlang Syntax Tools, OTP documentation. http://www.erlang.org/doc/apps/syntax_tools/index.htmlGoogle ScholarGoogle Scholar

Index Terms

  1. Model-based testing of data types with side effects

              Recommendations

              Comments

              Login options

              Check if you have access through your login credentials or your institution to get full access on this article.

              Sign in
              • Published in

                cover image ACM Conferences
                Erlang '11: Proceedings of the 10th ACM SIGPLAN workshop on Erlang
                September 2011
                108 pages
                ISBN:9781450308595
                DOI:10.1145/2034654

                Copyright © 2011 ACM

                Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                Publisher

                Association for Computing Machinery

                New York, NY, United States

                Publication History

                • Published: 23 September 2011

                Permissions

                Request permissions about this article.

                Request Permissions

                Check for updates

                Qualifiers

                • research-article

                Acceptance Rates

                Erlang '11 Paper Acceptance Rate10of14submissions,71%Overall Acceptance Rate51of68submissions,75%

                Upcoming Conference

                ICFP '24

              PDF Format

              View or Download as a PDF file.

              PDF

              eReader

              View online with eReader.

              eReader