Commit graph

4 commits

Author SHA1 Message Date
mitchmindtree
dab1c74b2a
Remove Rust integration testing behaviour from forc test in anticipation of unit testing support (#2264)
This PR is a WIP that aims to address the first 3 steps in #1833.

This is in anticipation of using `forc test` to support unit testing
(rather than Rust integration testing) #1832.

The `forc test` command remains for now, but outputs a message
explaining that the command is now reserved for unit testing and links
to the issues above.

## TODO

- [x] Create a new `sway-test-rs` repo or similar that can be used as a
`cargo generate` template.
- [x] Update Rust integration testing docs in the Sway book to describe
how to use the `cargo generate` command to easily add Sway integration
testing to an existing Rust project.

## Follow-up

- Create a `forc-test-rs` crate that re-exports and extends `fuels` with
useful `forc` functionality for integration testing (e.g. re-exporting
`forc_pkg::build` to ensure sway code is built and available under
`out/` at the start of testing).
2022-10-10 12:27:13 +11:00
John Adler
fddb2067dd
Create markdown-lint.yml (#2534)
* Create markdown-lint.yml

* Fix lint errors.
2022-08-15 12:45:07 -04:00
John Adler
9dc04fca7f
Fix and clean up forc reference docs. (#2233)
* Fix and clean up forc reference docs.

* Revert path surround change.

* Surround with backticks.
2022-07-06 00:49:00 +00:00
bing
e75cbd7c97
Use forc-documenter as an mdbook preprocessor instead (#1545)
* mdbook-forc-documenter

* Cargo.toml update

* Delete forc documenter script folder

* Introduce mdbook-forc-documenter

* Update CI

* Cargo.lock

* make clippy happy

* Remove println

* Add examples in .md format

* Load examples

* Make clippy happy

* Delete forc_completions

* Re-add forc_completions

* Reorder cargo.toml dependencies

* Add README for mdbook-forc-documenter

* Update book README

* Update make_app

* Revert ci.yml

* Remove forc-documenter-dry-run from ci.yml

* Add mechanism to detect inconsistencies between forc commands and documentation

* Handle removed commands and new commands separately

* make clippy happy :)

* Fix errors in Cargo.toml

* typo: competions -> completions

* Remove redundant \n

* Update Cargo.toml

* Update Cargo.lock
2022-05-17 15:02:28 +08:00