Giter VIP home page Giter VIP logo

sway-test-rs's Introduction

๐Ÿ“ Archived - this repo has been moved to the sway repo

Rust + Sway integration testing

A cargo-generate template that makes it easy to initialise Rust integration testing within an existing Sway project.

This template is designed for Rust developers who wish to test integration of their Rust application and Sway code.

Usage

With Rust installed:

  1. Install the cargo generate command.

    cargo install cargo-generate
    

    You can learn more about cargo generate by visiting its repository.

  2. Change into the directory of your existing forc project.

    cd /path/to/my/forc/project
    

    Make sure you have run forc build within your project at least once so that the output artifacts are available to the integration tests. Note: This may no longer be required in the future as we hope to enable the integration testing to automatically build the artifacts as necessary so that they are always up to date!

  3. Generate your integration tests.

    cargo generate --init https://github.com/fuellabs/sway-test-rs
    

    The cargo generate command will prompt you for your project's name. Make sure the name matches your existing forc project name!

  4. Done! Your test harness should be generated. You can run it as you would normal Rust tests:

    cargo test
    

    If all went well the initial test harness should build and run successfully!

Useful Links:

sway-test-rs's People

Contributors

mitchmindtree avatar maschad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.