Skip to content

cargo php test and cargo php bench #532

@kakserpom

Description

@kakserpom

cargo php test

It should enable running Rust tests with loaded Zend API, which would greatly simplify development by getting rid of numerous hacks like:

#[cfg(not(any(test, feature = "test")))]
type _Zval = Zval;
#[cfg(any(test, feature = "test"))]
type _Zval = str;

cargo php bench

Besides loading Zend API it should allow running benchmarks with

[lib]
crate-type = ["cdylib"]

in Cargo.toml

Now I am using an additional cdylib-crate (which depends on the crate with path ..) to run cargo php.
cargo bench and cargo test I run in the parent non-cdylib crate.

It'd be neat to use just a single crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cargo-phpRelated to `cargo-php`enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions