Skip to content

ardoco/traceviz

Repository files navigation

trace-viz

trace-viz is a Visual Studio Code extension that integrates generated or imported trace links directly into the IDE. The extension supports multiple trace visualization modes such as sentence-to-file and file-to-file. It enables interactive exploration of trace links through inline markers, context tooltips, and quick navigation.

Features

  • Multiple Traceability Approaches: Support for ArDoCo, LiSSA, and direct CSV imports
  • Interactive Visualization: Inline code decorations showing trace links
  • Trace History: Track and manage multiple trace link results
  • Flexible Configuration: Configure traceability approaches through VS Code settings
  • CSV Support: Import trace links directly from CSV files
  • Code Model Generation: Generate code models from Java projects

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/ardoco/traceviz.git
    cd traceviz

    See package.json for project metadata and dependencies.

  2. Install dependencies:

    npm install
  3. Compile the extension:

    npm run compile

Running the Extension

Development Mode

  1. Start the TypeScript compiler in watch mode:

    npm run watch
  2. Launch the extension:

    • Press F5 in VS Code, or
    • Go to Run → Start Debugging menu

    This will open a new VS Code window with the extension loaded.

  3. Activate the extension by:

    • Opening the "Trace-Viz" view in the activity bar
    • Or executing any trace-viz command

Production Build

To package the extension for production:

npm run compile

Usage

  1. Open a project folder in VS Code

  2. Access Trace-Viz from the activity bar (link icon)

  3. Choose a traceability approach (see src/traceabilityApproach/ for implementations):

  4. View and manage trace results in the "Trace History" panel

  5. Visualize trace links inline in your code

Configuration

Configure trace-viz in VS Code settings:

  • trace-viz.codeModelExtractorJar: Path to the code model extractor JAR file

  • trace-viz.logLevel: Controls logging verbosity

    • Options: DEBUG, INFO, WARN, ERROR
    • Default: INFO

Development

Available Commands

# Compile TypeScript
npm run compile

# Watch mode (auto-compile on file changes)
npm run watch

# Run linter
npm run lint

Project Structure

Contributing

Contributions are welcome! Please ensure:

  • Code passes linting: npm run lint
  • TypeScript compilation succeeds: npm run compile

License

See LICENSE file for details.

Acknowledgements

This extension is a bachelor thesis implementation by Julian Winter.

About

VS Code Plugin to use Trace Links of ArDoCode / LiSSA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •