Integration test tool for phper.
The php-config
is needed. You can set environment PHP_CONFIG
to specify the path.
-
Because the
phper-test
depends on thecdylib
to do integration test, but nowcargo test
don't buildcdylib
in[lib]
, so you must callcargo build
beforecargo test
.Maybe, when the feature artifact-dependencies becomes stable, or the issue be solved, you don't have to call
cargo build
in advance, but I think it will be a long long stage. -
Or, define an
[[example]]
section, re-export all the symbols of your crate, and setlto = true
. It's strange, but this is the only method to just runcargo test
without runningcargo build
in advance. Please refer to tests/integration/Cargo.toml.