Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document how to run tests #337

Open
pravi opened this issue May 3, 2023 · 2 comments
Open

Please document how to run tests #337

pravi opened this issue May 3, 2023 · 2 comments

Comments

@pravi
Copy link

pravi commented May 3, 2023

In most projects, bundle install, bundle exec rake runs tests. Here I can see a .autotest and after installing autotest gem and manually installing each dependency gems, autotest fails

$ autotest 
Unhandled exception: No such file or directory - ../../sexp_processor/dev/lib/pt_testcase.rb
/home/pravi/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/find.rb:43:in `block in find'
  /home/pravi/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/find.rb:43:in `collect!'
  /home/pravi/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/find.rb:43:in `find'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:407:in `block in find_files'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:405:in `each'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:405:in `find_files'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:434:in `find_files_to_test'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:301:in `run_tests'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:292:in `get_to_green'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:263:in `block in run'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:261:in `loop'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:261:in `run'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/lib/autotest.rb:152:in `run'
  /home/pravi/.rvm/gems/ruby-3.1.2/gems/minitest-autotest-1.1.1/bin/autotest:5:in `<top (required)>'
  /home/pravi/.rvm/gems/ruby-3.1.2/bin/autotest:25:in `load'
  /home/pravi/.rvm/gems/ruby-3.1.2/bin/autotest:25:in `<main>'
  /home/pravi/.rvm/gems/ruby-3.1.2/bin/ruby_executable_hooks:22:in `eval'
  /home/pravi/.rvm/gems/ruby-3.1.2/bin/ruby_executable_hooks:22:in `<main>'
Quitting

@presidentbeef
Copy link

Not Ryan, but I recommend:

gem install hoe minitest isolate
rake newb

After that, just run rake.

@pravi
Copy link
Author

pravi commented May 4, 2023

@presidentbeef thanks, it'd be nice to add this to README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants