diff options
author | Chris Fallin <cfallin@google.com> | 2015-01-14 15:44:46 -0800 |
---|---|---|
committer | Chris Fallin <cfallin@google.com> | 2015-01-14 15:44:46 -0800 |
commit | 3f3820d8f8b5c0b67aadc25ad5a2e728b6a3fe79 (patch) | |
tree | 53afc636c0dfe600a05bc65531023886436b1af3 /ruby/google-protobuf.gemspec | |
parent | 7c4bbf07a5eee1fd4f5c2d60be32b95c35b0ed1d (diff) | |
download | protobuf-3f3820d8f8b5c0b67aadc25ad5a2e728b6a3fe79.tar.gz protobuf-3f3820d8f8b5c0b67aadc25ad5a2e728b6a3fe79.tar.bz2 protobuf-3f3820d8f8b5c0b67aadc25ad5a2e728b6a3fe79.zip |
Two tests for Ruby code generator:
- A golden-file test that ensures protoc produces known-valid output.
- A Ruby test that loads that golden file and ensures it actually works
with the extension.
This split strategy allows us to test end-to-end without needing to
integrate the Ruby gem build system and the protoc build system. This is
desirable because we do not want a gem build/install to depend on
building protoc, and we do not want building protoc to depend on
building and testing the gem.
Diffstat (limited to 'ruby/google-protobuf.gemspec')
-rw-r--r-- | ruby/google-protobuf.gemspec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/google-protobuf.gemspec b/ruby/google-protobuf.gemspec index 87033ac4..7bfa533c 100644 --- a/ruby/google-protobuf.gemspec +++ b/ruby/google-protobuf.gemspec @@ -18,5 +18,7 @@ Gem::Specification.new do |s| s.files = ["lib/google/protobuf.rb"] + # extension C source find_c_source("ext/google/protobuf_c") - s.test_files = `git ls-files -- tests`.split + s.test_files = ["tests/basic.rb", + "tests/stress.rb", + "tests/generated_code_test.rb"] end |