Skip to content

Commit

Permalink
Run test concurrently
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Jul 26, 2024
1 parent 55d3d9f commit 342e592
Show file tree
Hide file tree
Showing 4 changed files with 250 additions and 247 deletions.
12 changes: 6 additions & 6 deletions tests_zemu/tests/addresses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultOptions = (model: any, is_address = false) => {
}

describe('Addresses', function () {
test.each(models)('get_unshielded_address', async function (m) {
test.concurrent.each(models)('get_unshielded_address', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m))
Expand All @@ -43,7 +43,7 @@ describe('Addresses', function () {
}
})

test.each(models)('show_unshielded_address', async function (m) {
test.concurrent.each(models)('show_unshielded_address', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand All @@ -64,7 +64,7 @@ describe('Addresses', function () {
}
})

test.each(models)('get_shielded_address', async function (m) {
test.concurrent.each(models)('get_shielded_address', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand All @@ -83,7 +83,7 @@ describe('Addresses', function () {
}
})

test.each(models)('get invalid shielded address', async function (m) {
test.concurrent.each(models)('get invalid shielded address', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m))
Expand All @@ -96,7 +96,7 @@ describe('Addresses', function () {
}
})

test.each(models)('show shielded address', async function (m) {
test.concurrent.each(models)('show shielded address', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand All @@ -120,7 +120,7 @@ describe('Addresses', function () {
}
})

test.each(models)('show_shielded_address_with_div', async function (m) {
test.concurrent.each(models)('show_shielded_address_with_div', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand Down
12 changes: 6 additions & 6 deletions tests_zemu/tests/keys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultOptions = (model: any, is_address = false) => {
}

describe('Nullifier', function () {
test.each(models)('get nullifier account 0x01', async function (m) {
test.concurrent.each(models)('get nullifier account 0x01', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand All @@ -50,7 +50,7 @@ describe('Nullifier', function () {
}
})

test.each(models)('get_nullifier_account_0xFF', async function (m) {
test.concurrent.each(models)('get_nullifier_account_0xFF', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand All @@ -77,7 +77,7 @@ describe('Nullifier', function () {
})

describe('Get_keys', function () {
test.each(models)('get ivk', async function (m) {
test.concurrent.each(models)('get ivk', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('Get_keys', function () {
}
})

test.each(models)('get ovk', async function (m) {
test.concurrent.each(models)('get ovk', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand All @@ -128,7 +128,7 @@ describe('Get_keys', function () {
}
})

test.each(models)('Get fvk', async function (m) {
test.concurrent.each(models)('Get fvk', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m, true))
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('Get_keys', function () {
})

describe('Diversifiers', function () {
test.each(models)('Div list with startindex', async function (m) {
test.concurrent.each(models)('Div list with startindex', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start(defaultOptions(m))
Expand Down
Loading

0 comments on commit 342e592

Please sign in to comment.