Skip to content

Commit

Permalink
Minimal viable test harness for the stdlib (FuelLabs#37)
Browse files Browse the repository at this point in the history
* config:update gitignore to ignore all tagket dirs

* feat:add working demo of test harness

* fix:add modules

* Add new demo_script_test project

* build:update dep versions in manifest files

* fix:update code in mod and main

* fix:change author email

* fixup

* fix:use local path to ttest current stdlib

* test:remove dummy test

* cleanup:remove dummy tests in prep for merge

* style:cargo fmt
  • Loading branch information
nfurfaro authored Feb 14, 2022
1 parent 8df8829 commit e8f8ea6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Cargo
# will have compiled files and executables
/target/
**/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Expand Down
22 changes: 22 additions & 0 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
authors = ["Fuel Labs <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
name = "tests"
version = "0.1.0"

[dependencies]
fuel-gql-client = { version = "0.2", default-features = false }
fuel-tx = "0.2.0"
fuels-abigen-macro = "0.3"
fuels-contract = "0.3"
fuels-core = "0.3"
fuel-core = "0.3.1"
fuel-types = "0.1"
rand = "0.8"
tokio = { version = "1.12", features = ["rt", "macros"] }

[[test]]
harness = true
name = "integration_tests"
path = "tests/harness.rs"
9 changes: 9 additions & 0 deletions tests/Forc.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[project]
author = "Fuel Labs <[email protected]>"
entry = "main.sw"
license = "Apache-2.0"
name = "tests"

[dependencies]
core = { git = "https://github.com/FuelLabs/sway-lib-core" }
std = { path = "../src" }
2 changes: 2 additions & 0 deletions tests/tests/harness.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Manually add tests to run here, ie:
// mod foo;

0 comments on commit e8f8ea6

Please sign in to comment.