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

How to only run onceover tests but not other rspec tests? #261

Closed
neomilium opened this issue Mar 20, 2020 · 2 comments
Closed

How to only run onceover tests but not other rspec tests? #261

neomilium opened this issue Mar 20, 2020 · 2 comments

Comments

@neomilium
Copy link
Contributor

Hi,

I use onceover to test roles against factsets and I'm really happy with this feature.

On other side, I have unit tests on some specific code. These tests run perfectly using bundle exec rspec but not using bundle exec onceover run spec due to different configuration (ie. in my case we use mocha to mock objects but it does make sense to split these tasks in CI too).

Is it possible to disable to rspec run on regular tests from onceover ones?

If not, could you give some hints to contribute this feature?

Thanks a lot for your help and this useful software.

@neomilium neomilium changed the title How to only run onceover test but not other rspec tests? How to only run onceover tests but not other rspec tests? Mar 20, 2020
@neomilium
Copy link
Contributor Author

I find how to have the expected behavior by removing one line in lib/onceover/runner.rb:

FileUtils.cp_r("#{@repo.spec_dir}", "#{@repo.tempdir}")

@dylanratcliffe What feature you want to provide by coping this directory?

@neomilium
Copy link
Contributor Author

Solution found and PR provided, see #262.

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

1 participant