Published January 28, 2022 | Version v5
Software Open

Replication Artifact for TOGA: A Neural Method for Test Oracle Generation

  • 1. University of Pennsylvania
  • 2. Columbia University
  • 3. Microsoft Research

Description

This repository contains the replication artifact for TOGA: A Neural Method for Test Oracle Generation to appear in ICSE 2022.

Testing is widely recognized as an important stage of the softwaredevelopment lifecycle. Effective software testing can provide benefits such as documentation, bug finding, and preventing regressions. In particular, unit tests document a unit’s intended functionality. A test oracle, typically expressed as an condition, documents the intended behavior of the unit under a given test prefix. Synthesizing a functional test oracle is a challenging problem, as it has to capture the intended functionality and not the implemented functionality. In our paper, we propose TOGA (Test Oracle GenerAtion), a unified transformer-based neural approach to infer both exceptional and assertion test oracles based on the context of the focal method.

Our artifact reproduces the results for all RQs in the paper's evaluation. The artifact includes source code and download links for datasets and models produced in the paper, fulfilling the requirements for reproduced, resuable, and available badges. We assume basic unix familiarity and ability to run python. Our artifact is given as a docker image for linux.

Note: For convenience, we provide a self-contained docker image to reproduce all results without any setup. We recommend using this to reproduce the results in the paper. See directions for using the docker image in the README.

Files

artifact_documents.zip

Files (13.4 GB)

Name Size Download all
md5:662705b2505d6640cbeba4021240848c
6.2 kB Preview Download
md5:e2779e7350964162ba8f6767ddd0bdc5
462.8 MB Download
md5:5c604e2ff849dc06675adb8964c0f0e2
462.8 MB Download
md5:ce39542b38a5f2c330e712c54e227df3
12.1 kB Preview Download
md5:f8aceb9404871f59b3d3fdc86d73fd5d
576.4 MB Download
md5:4fe9a5cc7fe0c88c58227d1e01ab83ea
2.1 GB Download
md5:cade55247b79cdab97d7a325e81af6c5
2.1 GB Download
md5:de0c4be265f4b74e366c2868af91c7a9
2.1 GB Download
md5:942d79171209f7ee14ab8fea748cd990
2.1 GB Download
md5:0ab9dd6b8f1536d7c03a67dbd31e7be8
2.1 GB Download
md5:52c364a250b453860b2d639079ac29e7
1.2 GB Download