Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13065 closed feature (patchwelcome)

Should a command-line-driven web server for running Qunit be provided via grunt

Reported by: sgharms Owned by:
Priority: low Milestone: None
Component: build Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

Greetings,

Over in JQueryUI Trac (http://bugs.jqueryui.com/ticket/8904) we've been kicking around a ticket where I asked whether we should provide a CLI-driven startup script for running a minimal, provided web server for the unit tests. It seems like a good idea, but the leadership there recommended the issue be addressed at jQuery core. Thus, I open this issue.

The goal here would be to mirror what I've seen in EmberJS where running a make, er, rake script launches a simple web server sufficient for running the tests. The documentation would then not have to require the prospective contributor to take on the cognitive overhead of finding / installing /configuring a web server - a yak-shave waiting to happen.

I could easily imagine the documentation for jQuery changing to be something like: "To run only the unit tests cd jquery && grunt testserver." This command would do the work of running the server and the equivalent work of grunt watch.

I believe that this would make contributing (with unit tests!) to jQuery easier. I am available for any clarifications should they be required.

Change History (2)

comment:1 Changed 7 years ago by dmethvin

Most people have a web server running on their dev systems. It's nice to have a self-contained test but it does complicate the setup of jQuery itself. We'd also need to change our testswarm setup so there are other issues to consider.

comment:2 Changed 7 years ago by timmywil

Component: unfiledbuild
Priority: undecidedlow
Resolution: patchwelcome
Status: newclosed

Also, all of our ajax tests are written in php so we couldn't just run a node server. Installing node and grunt are not necessarily small tasks for a first-timer either. And oh man, testswarm. Regardless, I'm not sure what to mark this, but I think we'd be willing to look at attempts, so I'll mark patchwelcome.

Note: See TracTickets for help on using tickets.