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

Weirdness in tests #287

Closed
subnetmarco opened this issue Jun 3, 2015 · 1 comment
Closed

Weirdness in tests #287

subnetmarco opened this issue Jun 3, 2015 · 1 comment
Labels

Comments

@subnetmarco
Copy link
Member

This is an interesting problem that I noticed. When running tests locally with busted -o spec/busted-print.lua --coverage spec/ spec/ two things happen:

  • The same tests are executed more than once. Here is my log: https://gist.github.com/thefosk/7fa5c1e92f637810acf2 (for example search for admin_api_spec.lua, it appears two times)
  • Some tests are not being executed at all, for example plugins_configurations_routes.lua (you can see it from my same log).

I noticed the same problem on Travis (for example at https://travis-ci.org/Mashape/kong/builds/65202359).

@thibaultcha
Copy link
Member

  • It runs twice because the right command is busted -o spec/busted-print.lua --coverage spec/.
  • It doesn't run because it doesn't have the _spec suffix.

ctranxuan pushed a commit to streamdataio/kong that referenced this issue Aug 25, 2015
Former-commit-id: ca31d6640a9a05de2f836b2df11d7f8e4056c54b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants