Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions dev/index.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
const { runTests } = require("../src");
const path = require("path");
require("dotenv").config({ path: path.join(__dirname, ".env") });

/**
* Run tests with a predefined configuration and print the result as pretty-printed JSON.
*/
async function main() {
const json = {
input: "test/artifacts/find_extendedFinding.spec.json",
input: ["heretto:example"],
logLevel: "debug",
runOn:[{
platforms: ["linux","windows","mac"],
browsers: [{
name: "firefox",
headless: true
}]
}],
runOn: [
{
platforms: ["linux", "windows", "mac"],
browsers: [
{
name: "firefox",
headless: true,
},
],
},
],
integrations: {
docDetectiveApi: {
apiKey: process.env.KEY
}
}
apiKey: process.env.KEY,
},
heretto: [
{
name: "example",
organizationId: process.env.HERETTO_ORG_ID, // Organization ID is the subdomain of your Heretto instance (e.g., "silva" for "silva.heretto.com")
username: process.env.HERETTO_USERNAME, // Your Heretto username/email
apiToken: process.env.HERETTO_TOKEN, // Your Heretto API token (https://help.heretto.com/en/heretto-ccms/api/ccms-api-authentication/basic-authentication)
Comment thread
hawkeyexl marked this conversation as resolved.
},
],
},
};
// console.log(json);
result = await runTests(json);
const result = await runTests(json);
console.log(JSON.stringify(result, null, 2));
}

main();
main();
Loading