• 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
  • -testsources REGEX ( ',' REGEX )*

    Prev Next
    Project
    Specification to find JUnit test cases by traversing the test src directory and looking for java classes. The default is (.*).java.

    • Example: -testsources=*.java

    • Values: REGEX ( ',' REGEX )*

    • Pattern: .*



    The -testsources instruction specifies how bnd should find JUnit test cases by searching the test source directory for Java classes. By default, it looks for all .java files, but you can provide a regular expression to customize which files are considered test sources.

    This instruction is useful for projects with non-standard test file naming or organization, allowing you to control which files are included as test cases during the build process.

Prev Next
Search
    • Home