TESTING

Testing Inline::Python3

Prerequisites

  • Ensure pyenv is installed and properly configured

  • Python 3.8+ should be installed via pyenv

  • The helper library must be built (see Development Setup in README.md)

Running Tests

Using the test wrapper (recommended)

The test script ensures pyenv is properly initialized:

# Run all tests
./test t/

# Run specific test
./test t/01-basic.t

Running tests directly

If running tests directly with prove, ensure pyenv is initialized in your shell:

# Initialize pyenv
eval "$(pyenv init -)"

# Then run tests
prove --exec=raku t/

Test Structure

The test suite consists of 8 test files with 97 tests total:

  • 01-basic.t - Basic functionality and type conversions (20 tests)

  • 02-types.t - Type conversion tests (15 tests)

  • 03-objects.t - Python object manipulation (12 tests)

  • 04-errors.t - Exception handling (8 tests)

  • 05-performance.t - Performance-related tests (5 tests)

  • 10-persistence.t - Persistent environment tests (12 tests)

  • 11-fallback.t - FALLBACK mechanism tests (15 tests)

  • 12-optimization.t - Optimization features (10 tests)

Known Issues

Some tests may fail with "bash: No such file or directory" if pyenv is not properly initialized. This is because pyenv's initialization script expects bash. Always use the test wrapper script or ensure pyenv is initialized in your shell before running tests.

Inline::Python3 v0.0.1

Python 3 integration for Raku

Authors

  • Danslav Slavenskoj

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Inline::Python3
  • Inline::Python3::BatchConvert
  • Inline::Python3::Cache::Integer
  • Inline::Python3::Cache::Method
  • Inline::Python3::Cache::String
  • Inline::Python3::Config
  • Inline::Python3::Installer
  • Inline::Python3::NumPy
  • Inline::Python3::Performance
  • Inline::Python3::Performance::Monitor

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.