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

Provide a link for re-running a single Module / TestGroup. #246

Closed
jonnyreeves opened this issue May 15, 2012 · 4 comments
Closed

Provide a link for re-running a single Module / TestGroup. #246

jonnyreeves opened this issue May 15, 2012 · 4 comments

Comments

@jonnyreeves
Copy link

Often when developing I just want to focus on the module / group that I am currently writing; I know Qunit support filtering the test-suite by module name via ?filter=[module], but the Qunit runner (HTML) does not provide a direct link to this URL (instead I end up clicking on the 'Re-run' button for a given module's test and then splicing the URL.

It would be great if the Qunit runner could possibly:

a) Be redesigned to more clearly group test cases by module and provide a single 're-run module' button for each module
b) Provide a 'Re-run module' button, and rename the current 'Re-run' button to 'Re-run testcase' to remove any ambiguity.

Thanks for all the hard work on Qunit :)
Jonny.

@jzaefferer
Copy link
Member

Somewhat related to #241

Might make sense to give modules more focus in the visual output, using module names as headers, instead of listing all tests on the same level. That seperate level could then also include a seperate Rerun link.

@Krinkle
Copy link
Member

Krinkle commented Jun 1, 2012

I know Qunit support filtering the test-suite by module name via `?filter=[module]`.

Just for the record, note that filter is doing a string search on the entire full test name (module + testname). Which means

  1. When you use the module name in any test name, it will run those as well
  2. When you have a module name that contains part of another module's name (e.g. jquery.foo and jquery.fooBar or jquery.foo.bar) then re-running just the jquery.foo module is not possible.

The ability to truly search by module name would be very welcome. Also from a distributed point of view such as TestSwarm where we already assume this is the case (certain tests are being run when they shouldn't right now because of the way filter works).

@jzaefferer
Copy link
Member

?module=[module] filters are now supported (via #256), just need a link in the UI.

@jonnyreeves
Copy link
Author

This has now been merged into master. :)

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

No branches or pull requests

3 participants