test.mts 427 B

12345678910111213141516
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. getToolchainArgument,
  6. workingDirectory,
  7. } from './setup/shared.mts';
  8. const [folder, ...args] = cliArguments();
  9. const testArgs = ['--all-features', ...args];
  10. const toolchain = getToolchainArgument('test');
  11. const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
  12. await $`cargo ${toolchain} test --manifest-path ${manifestPath} ${testArgs}`;