Skip to content

Commit

Permalink
fix: change test cmd in template
Browse files Browse the repository at this point in the history
  • Loading branch information
hunjixin committed Aug 11, 2022
1 parent ef86e74 commit d8e42ff
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 d8e42ff

Please sign in to comment.