Skip to content

Commit

Permalink
test: add a test:rust rake task to exercise the rust bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Sep 7, 2023
1 parent 754bc88 commit a226e9a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ bundle exec rake compile test
bundle exec rake compile:yarp test
```

To test the rust bindings (with caveats about setting up your Rust environment properly first):

``` sh
bundle exec rake compile test:rust
```


## Documentation

We could always use more documentation! If you want to contribute documentation, feel free to open a pull request. These will get merged in as soon as possible. Documenting functions or methods is always useful, but we also need more guides and tutorials. If you have an idea for a guide or tutorial, feel free to open an issue and we can discuss it.
Expand Down
9 changes: 9 additions & 0 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@ namespace :test do
end

LldbTestTask.new(lldb: :compile, &config)

desc "Run the tests for the rust bindings"
task :rust do
["rust/yarp", "rust/yarp-sys"].each do |dir|
Dir.chdir(dir) do
sh("cargo test")
end
end
end
end

0 comments on commit a226e9a

Please sign in to comment.