Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass compiler configuration to remix-tests #2555

Merged
merged 4 commits into from
Jan 29, 2020
Merged

Conversation

Aniket-Engg
Copy link
Collaborator

related to ethereum/remix#1410

@@ -166,13 +173,19 @@ module.exports = class TestTab extends ViewPlugin {
runTest (testFilePath, callback) {
this.loading.hidden = false
this.fileManager.getFile(testFilePath).then((content) => {
var runningTest = {}
let runningTest = {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use const

optimize,
usingWorker: canUseWorker(currentVersion)
}
remixTests.runTestSources(runningTest, compilerConfig, () => {}, () => {}, (error, result) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is exacly for this kind of case that I would recommend an object argument instead of a list of ordered arguments (see comment here).

@LianaHus LianaHus merged commit 6e27df8 into master Jan 29, 2020
@LianaHus LianaHus deleted the compiler-config-for-tests branch January 29, 2020 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants