Reduzindo o tempo de execução de testes unitários de contratos inteligentes em plataformas blockchain

  • Hallan Medeiros Universidade Federal de Santa Catarina
  • Patrícia Vilain Universidade Federal de Santa Catarina
  • Vilmar César Pereira Jr. Universidade Federal de Santa Catarina

Resumo


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.
Palavras-chave: Smart Contracts Testing, Test Automation
Publicado
20/05/2019
Como Citar

Selecione um Formato
MEDEIROS, Hallan; VILAIN, Patrícia; PEREIRA JR., Vilmar César. Reduzindo o tempo de execução de testes unitários de contratos inteligentes em plataformas blockchain. In: SIMPÓSIO BRASILEIRO DE SISTEMAS DE INFORMAÇÃO (SBSI), 15. , 2019, Aracajú. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2019 . p. 119-126.