Stéphane
Stéphane•12mo ago

Launch tests with unstable flag inside VS Code

Hi there, I'm creating a module that uses FFI and Deno.dlopen and I wrote tests to validate some of the API calls, like this one :
import { assertEquals } from "https://deno.land/std@0.198.0/assert/mod.ts";
import { get_version } from "./mod.ts";
Deno.test({ name:"get_version", permissions: { ffi: true } }, () => {
assertEquals(get_version(), "6.0.0");
});
import { assertEquals } from "https://deno.land/std@0.198.0/assert/mod.ts";
import { get_version } from "./mod.ts";
Deno.test({ name:"get_version", permissions: { ffi: true } }, () => {
assertEquals(get_version(), "6.0.0");
});
I can run them in the command line typing deno test --unstable --allow-ffi but I can't call them directly from the interface in VS Code, it just says "Test failed" with no output and no explanation on why it fails. Is it a known issue and is there a workaround ? Command line is fine of course but I like the VS Code integration, it would be nice if it could work there too 🙂 Thanks !
0 Replies
No replies yetBe the first to reply to this messageJoin