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
5 changes: 3 additions & 2 deletions libs/remix-tests/src/run.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import commander from 'commander'
import Web3 from 'web3';
import path from 'path'
import { runTestFiles } from './runTestFiles'
import fs from './fileSystem'
import { Provider } from '@remix-project/remix-simulator'
Expand All @@ -20,7 +21,7 @@ function mapVerbosity (v: number) {
}
return levels[v]
}
const version = require('../../../package.json').version
const version = require('../package.json').version

commander.version(version)

Expand Down Expand Up @@ -58,7 +59,7 @@ commander
}

const isDirectory = fs.lstatSync(filename).isDirectory()
runTestFiles(filename, isDirectory, web3)
runTestFiles(path.resolve(filename), isDirectory, web3)
})

if (!process.argv.slice(2).length) {
Expand Down
2 changes: 1 addition & 1 deletion libs/remix-tests/src/runTestFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3,
} else if (result.type === 'testPass') {
signale.result(result.value)
} else if (result.type === 'testFailure') {
signale.result(result.value.red)
signale.error(result.value.red)
errors.push(result)
}
}
Expand Down