-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ts
27 lines (24 loc) · 857 Bytes
/
test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { getContractCode, _dirs, _names, scillaServerUrl } from './config';
import { TestGenerator, ScillaServer } from './scillaTest';
import { testDecisionQueue } from './contractTests/DecisionQueue';
import { testQVoting } from './contractTests/QVoting';
import { resolve } from 'path';
import { check } from './utill';
const tg = new TestGenerator({
testResultAbsolutePath: _dirs.testDir
})
const ss = new ScillaServer(scillaServerUrl);
(async () => {
try {
await check("DecisionQueue", getContractCode(
resolve('./contract/DecisionQueue.scilla')),
testDecisionQueue, ss, tg);
await check("QVoting", getContractCode(
resolve('./contract/QVoting.scilla')),
testQVoting, ss, tg);
} catch (e) {
console.error(e);
}
console.info("Done!")
process.exit()
})();