test.mjs 498 B

12345678910111213141516
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. getToolchainArgument,
  6. workingDirectory,
  7. } from '../utils.mjs';
  8. // Configure additional arguments here, e.g.:
  9. // ['--arg1', '--arg2', ...cliArguments()]
  10. const buildArgs = cliArguments();
  11. const toolchain = getToolchainArgument('test');
  12. const manifestPath = path.join(workingDirectory, 'interface', 'Cargo.toml');
  13. // Test the interface.
  14. await $`cargo ${toolchain} test --all-features --manifest-path ${manifestPath} ${buildArgs}`;