Skip to content

Commit

Permalink
Merge pull request #58 from ipfs-force-community/fix/template_cmd
Browse files Browse the repository at this point in the history
fix: 修复创建模版过程中测试程序错误的问题/fix test command when new project from template
  • Loading branch information
web3creator committed Aug 11, 2022
2 parents ef86e74 + d8e42ff commit 509bf1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ code-gen:
clean:
rm -rf ./bin/*

lint:
golangci-lint run
cargo run -p ci -- lint

test: build code-gen
cd ./sdk/cases && go-fvm-sdk-tools test
cd ./examples/hellocontract && go-fvm-sdk-tools test
Expand Down
2 changes: 1 addition & 1 deletion tools/sdk_tool/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub fn new_template_project(cfg: &NewTemplateConfig) -> Result<()> {
.run()
.map_err(|e| anyhow!("unable to build template in template project {}", e))?;

cmd!(sh, "go-fvm-sdk-tools test -- ./tests")
cmd!(sh, "go-fvm-sdk-tools test")
.run()
.map_err(|e| anyhow!("unable to run test in template project {}", e))?;

Expand Down

0 comments on commit 509bf1a

Please sign in to comment.