Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Remix Tests Typescript implementation #1128

Merged
merged 59 commits into from
Mar 25, 2019
Merged

Remix Tests Typescript implementation #1128

merged 59 commits into from
Mar 25, 2019

Conversation

0mkara
Copy link
Collaborator

@0mkara 0mkara commented Feb 18, 2019

Remix Tests Typescript implementation

@0mkara 0mkara self-assigned this Feb 18, 2019
remix-tests/package.json Show resolved Hide resolved
remix-tests/src/compiler.ts Outdated Show resolved Hide resolved
}

function writeTestAccountsContract (accounts: string[]) {
var testAccountContract = require('../sol/tests_accounts.sol.js')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would recommand using ES6 lazy imports instead of node require :

async function writeTestAccountsContract (accounts: string[]) {
  const testAccountContract = await import('../sol/tests_accounts.sol.js')
  ...
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will have to wait till a Promisified version of this library starts being developed.

remix-tests/src/compiler.ts Outdated Show resolved Hide resolved
remix-tests/src/compiler.ts Show resolved Hide resolved
@yann300
Copy link
Collaborator

yann300 commented Feb 25, 2019

remix-lib failing test is not related

@yann300
Copy link
Collaborator

yann300 commented Feb 26, 2019

@iurimatias is this ok to merge regarding the workshops next week?

@yann300
Copy link
Collaborator

yann300 commented Mar 24, 2019

did the rebase worked ok? cause several commits actually belong to master.

@0mkara 0mkara changed the title [WIP] Remix Tests Typescript implementation Remix Tests Typescript implementation Mar 24, 2019
@0mkara
Copy link
Collaborator Author

0mkara commented Mar 24, 2019

Yes it seems it worked. I can see tests and codes are all in place.

@yann300
Copy link
Collaborator

yann300 commented Mar 25, 2019

i just don't get why this commit cc4dcb5
and some other are referenced in this PR...

@0mkara
Copy link
Collaborator Author

0mkara commented Mar 25, 2019

i just don't get why this commit cc4dcb5
and some other are referenced in this PR...

I rebased it after your fix last night.

@yann300 yann300 merged commit af9aae6 into ethereum:master Mar 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants