Reducing the execution time of unit tests of smart contracts in blockchain platforms

被引:0
|
作者
Medeiros, Hallan [1 ]
Vilain, Patricia [1 ]
Pereira Junior, Vilmar Cesar [1 ]
机构
[1] Univ Fed Santa Catarina, Florianopolis, SC, Brazil
关键词
Smart Contracts Testing; Test Automation;
D O I
10.1145/3330204.3330225
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Smart Contracts are software code that resides within a blockchain, using its infrastructure as an advantage and guarantee of execution. Blockchain and smart contracts are enabling new business models and standards to information systems. However, a smart contract needs to be well tested before to be published in a blockchain, since it cannot be changed after being deployed. The execution time to deploy smart contracts and run their tests is considerable because all transactions must be mined before being added to a new block. This work proposes an approach to reuse the execution of the deployment and the setup of unit test in smart contracts to reduce the execution time of these tests. Experiments have shown a large reduction in the execution time of smart contract unit tests, without breaking the principle of test independency.
引用
收藏
页数:8
相关论文
共 50 条
  • [31] Blockchain to Eliminate Intermediaries: Smart Contracts
    Al-Harrasi, Abir S.
    Al-Badi, Ali H.
    Khalique, Shaikh A.
    [J]. VISION 2025: EDUCATION EXCELLENCE AND MANAGEMENT OF INNOVATIONS THROUGH SUSTAINABLE ECONOMIC COMPETITIVE ADVANTAGE, 2019, : 3351 - 3357
  • [32] On legal contracts, imperative and declarative smart contracts, and blockchain systems
    Guido Governatori
    Florian Idelberger
    Zoran Milosevic
    Regis Riveret
    Giovanni Sartor
    Xiwei Xu
    [J]. Artificial Intelligence and Law, 2018, 26 : 377 - 409
  • [33] On legal contracts, imperative and declarative smart contracts, and blockchain systems
    Governatori, Guido
    Idelberger, Florian
    Milosevic, Zoran
    Riveret, Regis
    Sartor, Giovanni
    Xu, Xiwei
    [J]. ARTIFICIAL INTELLIGENCE AND LAW, 2018, 26 (04) : 377 - 409
  • [34] From smart legal contracts to contracts on blockchain: An empirical investigation
    Bassan, Fabio
    Rabitti, Maddalena
    [J]. COMPUTER LAW & SECURITY REVIEW, 2024, 55
  • [35] An Automated Approach towards Smart Healthcare with Blockchain and Smart Contracts
    Haque, Akm Bahalul
    Muniat, Ayman
    Ullah, Parisha Rafiq
    Mushsharat, Shimin
    [J]. 2021 IEEE INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION, AND INTELLIGENT SYSTEMS (ICCCIS), 2021, : 250 - 255
  • [36] An overview of blockchain smart contract execution mechanism
    Liu, Yang
    He, Jinlong
    Li, Xiangyang
    Chen, Jingwen
    Liu, Xinlei
    Peng, Song
    Cao, Haohao
    Wang, Yaoqi
    [J]. JOURNAL OF INDUSTRIAL INFORMATION INTEGRATION, 2024, 41
  • [37] Blockchain and Smart Contracts in a Decentralized Health Infrastructure
    Noyikoy, Sergey P.
    Kazakov, Oleg D.
    Kulagina, Natalya A.
    Azarenko, Natalya Yu.
    [J]. 2018 IEEE INTERNATIONAL CONFERENCE QUALITY MANAGEMENT, TRANSPORT AND INFORMATION SECURITY, INFORMATION TECHNOLOGIES (IT&QM&IS), 2018, : 697 - 703
  • [38] The Intersection of Radiology With Blockchain and Smart Contracts: A Perspective
    Ghorashi, Nima S.
    Rahimi, Murwarit
    Sirous, Reza
    Javan, Ramin
    [J]. CUREUS JOURNAL OF MEDICAL SCIENCE, 2023, 15 (10)
  • [39] A Survey on Security Verification of Blockchain Smart Contracts
    Liu, Jing
    Liu, Zhentian
    [J]. IEEE ACCESS, 2019, 7 : 77894 - 77904
  • [40] Scalable Blockchain Based Smart Contract Execution
    Gao, Zhimin
    Xu, Lei
    Chen, Lin
    Shah, Nolan
    Lu, Yang
    Shi, Weidong
    [J]. 2017 IEEE 23RD INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS (ICPADS), 2017, : 352 - 359