Skip to content

[Flow-Testing-Framework] Code reusability #438

Open
@damian-psiware

Description

@damian-psiware

Issue to be solved

Hi!

I am developing a set of smart contracts and I would like the possibility of reuse some test code. I have to put everything in a single file because there is no way of using the "Test" contract in other contracts. I was trying to create a contract called "TestingHelpers", define functions that calls some transcations or scripts with "readFile" methods there and call them from _test files. But "Test" contract is not defined in that context.

Thanks!

Suggested Solution

Make "Test" contract available in any context when running flow Test so we can define Testing functions and reuse them, so we don't copypaste always the same.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions