| 12345678910111213141516 |
- #!/usr/bin/env zx
- import 'zx/globals';
- import {
- cliArguments,
- getToolchainArgument,
- workingDirectory,
- } from './setup/shared.mts';
- const [folder, ...args] = cliArguments();
- const testArgs = ['--all-features', ...args];
- const toolchain = getToolchainArgument('test');
- const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
- await $`cargo ${toolchain} test --manifest-path ${manifestPath} ${testArgs}`;
|