• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • Introduction
      • How to install bnd
      • Guided Tour Workspace & Projects
      • bnd / bndlib Features and JAR Wrapping Techniques
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Concepts
      • Background
      • Best practices
    • Build and Development
      • Build
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • bnd CLI Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • p_testpath

    Prev Next
    Project
    Get the project's test runtime path

    Summary

    The p_testpath macro returns the test runtime path (JARs placed on the classpath for testing) as a comma-separated list of file paths.

    Syntax

    ${p_testpath}
    

    Parameters

    None - this macro takes no parameters.

    Behavior

    • Returns all JARs on the test runtime path
    • Paths are absolute
    • Results are comma-separated
    • Includes all -runpath entries for testing

    Examples

    Get test path:

    Test-Dependencies: ${p_testpath}
    

    Use Cases

    • Listing test runtime dependencies
    • Test configuration
    • Dependency documentation
    • Build metadata

    Notes

    • Returns absolute paths
    • Includes -runpath entries
    • Used for test execution
    • See also: ${p_buildpath} for compile dependencies

    See test cases in MacroTestsForDocsExamples.java

Prev Next
Search
    • Home