Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/vixe-cin-ufpe/TPVis
19 September 2024, 06:48:25 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    No releases to show
  • fc387df
  • /
  • README.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:8a0cf2c98505f3754cb2be204bbfe3bbf2fa52cb
origin badgedirectory badge
swh:1:dir:fc387df2f526334f22bd20203faec722a472c011
origin badgerevision badge
swh:1:rev:e7d38e58acdd30bdfb9131e8212720e84d0f381e
origin badgesnapshot badge
swh:1:snp:76e6a9904cf3b0914d264d830b35ed70da2fae21

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: e7d38e58acdd30bdfb9131e8212720e84d0f381e authored by José Arthur Silveira on 28 August 2024, 00:55:23 UTC
Update README.md
Tip revision: e7d38e5
README.md
# TPVis: Test Case Prioritization Visualization
Demo video: https://youtu.be/9bkLAHVkpXw

This is the full source code for TPVis, presented in:

> TODO: add reference upon publication

## Preparing a dataset

TPVis datasets (called workspaces) are flexible and can be built for any application. In this repository, we do include a sample one (used in our paper) for demonstration purposes. It may also be used as a reference to build your own.

```bash
7z x ./workspaces/FAST.7z.001 -o./workspaces
```

After unziping the archieve, you will be presented the following directory structure:

     ./workspaces/FAST
     |
     |--- call_graphs/                Holds information for the coverage evolution tool. 
     |
     |--- prioritizations/            Holds prioritization data. Each file is composed of a single json array of test ids.
     |
     |--- testsets/                   Holds test set data. Each file contains a json array of each test and all its related metada.
     |
     |--- workspace.json              Holds the prioritization tree data and reffers to all corresponding file in the workspaces' subdirectories
     |
     |--- workspace-NO-METRICS.json   A sample workspace file (not required or used) for a workspace without APFD metric calculated.

## Running TPVis

### Using Docker

Usually, users may prefer to run TPVis using docker (https://docs.docker.com/engine/install/). In this repository, we provide a docker image to build and run the application. 

```bash
docker compose up --build
```

> [!TIP]
> The docker-compose file will mount a volume to the container for the "workspaces" directory. Some additional file permission configuration may be necessary depending on your platform. 

TPVis will be listening by default on `http://localhost:8082/?workspace=<workspace-name>`. If you're using the sample dataset, the URL should be `http://localhost:8082/?workspace=FAST`

### Development mode

TPVis is a standard Angular frontend + Quarkus backend (JDK 17) web application. Please refer to the official framework guides to run TPVis in development mode.
- [Angular documentation](https://v16.angular.io/docs)
   * [Getting Started](https://v16.angular.io/start)
   * [Setup local environment workspace](https://v16.angular.io/guide/setup-local)
- [Quarkus documentation](https://quarkus.io/version/3.2/guides/#)
   * [Getting Started](https://quarkus.io/version/3.2/guides/getting-started)
   * [Running via an IDE](https://quarkus.io/version/3.2/guides/ide-tooling)


back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API