Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo make unit-tests -p <package> does not work #32

Open
elagergren-spideroak opened this issue Jan 7, 2025 · 0 comments
Open

cargo make unit-tests -p <package> does not work #32

elagergren-spideroak opened this issue Jan 7, 2025 · 0 comments
Labels
CI/CD CICD pipeline

Comments

@elagergren-spideroak
Copy link
Member

See frewsxcv/cargo-all-features#53

Perhaps we should invoke a script sorta like

dir=
args=()
for arg in "${@}"
do
    if [[ "${arg}" == "-p" ]] || [[ "${arg}" == "--package" ]]; then
        shift
        dir="${0}"
    else
        args+=("${arg}")
    fi
    shift
done
if [[ -n "${dir}" ]]; then
    pushd "${dir}"
fi
cargo --verbose test-all-features ${args[@]}
popd || true
@elagergren-spideroak elagergren-spideroak added the CI/CD CICD pipeline label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD CICD pipeline
Projects
None yet
Development

No branches or pull requests

1 participant