Mikhail Ravkine wrote: > I've got a simple transaction-based test enviroment based > on a modified counter (added down-counting and loading) working. > I'd like to clean it up a little bit (it's being bootstrapped > from a unit test currently, I haven't dug deep enough into the > internals to figure out how to remove this dependency)
Simply remove the {require 'test/unit'} or {require 'spec'} line from the top of the *_spec.rb file, and adjust your spec to not make use of the xUnit/RSpec library. In the future, you can generate a pure Ruby test bench that does not have such dependencies by omitting --xunit and --rspec from the {ruby-vpi generate} command: $ ruby-vpi generate counter.v module counter create counter_runner.rake create counter_design.rb create counter_proto.rb create counter_spec.rb create counter_loader.rb skip Rakefile $ cat counter_spec.rb DUT.reset! # raise "should ..." unless DUT ... $ ruby-vpi generate counter.v --rspec module counter skip counter_runner.rake skip counter_design.rb skip counter_proto.rb update counter_spec.rb skip counter_loader.rb skip Rakefile $ cat counter_spec.rb require 'spec' describe "A #{DUT.name}, when reset" do before do DUT.reset! end it "should ..." do # DUT.should ... end end