Skip to main content

Unit Testing of Z Specifications

  • Conference paper
Abstract State Machines, B and Z (ABZ 2008)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 5238))

Included in the following conference series:

Abstract

We propose a simple framework for validation unit testing of Z specifications, and illustrate this framework by testing the first few levels of a POSIX specification. The tests are written in standard Z, and are executable by the CZT animator, ZLive.

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 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bicarregui, J.C., Hoare, C.A.R., Woodcock, J.C.P.: The verified software repository: a step towards the verifying compiler. Formal Aspects of Computing 18(2), 143–151 (2006)

    Article  MATH  Google Scholar 

  2. Carrington, D.A., Stocks, P.: A tale of two paradigms: formal methods and software testing. In: Proceedings of the 8th Z User Meeting (ZUM 1994), June 1994, pp. 51–68. Springer, Heidelberg (1994)

    Google Scholar 

  3. Community Z tools, http://czt.sourceforge.net

  4. Freitas, L., Fu, Z., Woodcock, J.: POSIX file store in Z/EVES: an experiment in the verified software repository. In: ICECCS 2007: Proceedings of the 12th IEEE International Conference on Engineering Complex Computer Systems, pp. 3–14. IEEE Computer Society, Los Alamitos (2007)

    Chapter  Google Scholar 

  5. Hierons, R.: Testing from a Z specification. Software Testing, Verification & Reliability 7, 19–33 (1997)

    Article  Google Scholar 

  6. Hoare, T.: The verifying compiler: A grand challenge for computing research. Journal of the ACM 50(1), 63–69 (2003)

    Article  Google Scholar 

  7. Joshi, R., Holzmann, G.J.: A mini challenge: build a verifiable file system. Formal Aspects of Computing 19(2), 269–272 (2007)

    Article  MATH  Google Scholar 

  8. Kazmierczak, E., Winikoff, M., Dart, P.: Verifying model oriented specifications through animation. In: Proceedings of the 5th Asia-Pacific Software Engineering Conference, pp. 254–261. IEEE Computer Society Press, Los Alamitos (December 1998)

    Google Scholar 

  9. Leuschel, M., Butler, M.: ProB: An Automated Analysis Toolset for the B Method. Journal Software Tools for Technology Transfer (page accepted for publication, 2008)

    Google Scholar 

  10. Morgan, C., Sufrin, B.: Specification of the UNIX filing system. IEEE Transactions on Software Engineering (1984)

    Google Scholar 

  11. Stocks, P.: Applying Formal Methods to Software Testing. PhD thesis, The University of Queensland (1993), http://www.bond.edu.au/it/staff/publications/PhilS-pubs.htm

  12. Utting, M., Malik, P.: Transforming Z with rules. In: ZUM 2007 at ICECCS 2007 in conjunction with FMinNZ 2007, Auckland (July 2007)

    Google Scholar 

  13. Utting, M.: Data structures for Z testing tools. In: Schellhorn, G., Reif, W. (eds.) FM-TOOLS 2000, 4th Workshop on Tools for System Design and Verification, vol. 2000-07, pp. 2000–2007. Ulmer Informatik Berichte (May 2000)

    Google Scholar 

  14. Winikoff, M.: Analysing modes and subtypes in Z specifications. Technical Report 98/2, Melbourne University (1998)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Egon Börger Michael Butler Jonathan P. Bowen Paul Boca

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Utting, M., Malik, P. (2008). Unit Testing of Z Specifications. In: Börger, E., Butler, M., Bowen, J.P., Boca, P. (eds) Abstract State Machines, B and Z. ABZ 2008. Lecture Notes in Computer Science, vol 5238. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-87603-8_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-87603-8_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-87602-1

  • Online ISBN: 978-3-540-87603-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics