The leftover bits from bug 1060312: (In reply to Ed Morley [:edmorley] from comment #2) > The npm parts also could do with being cleaned up: > * aiui it's best practice to install grunt-cli globally, and then the runner > itself locally. The docs don't mention the global install. > * the docs say to install karma globally, but I think this should be local? > * The install instructions prefix everything with sudo, when this isn't > necessary for non-global and is also not correct for say Windows. > * The "build" section says to "Install the devDependencies in package.json", > when presumably we can just |npm install| to do that for us.
See also: https://github.com/mozilla/treeherder-ui/pull/486#issuecomment-96843927 There was confusion there figuring out how to install the deps and run the UI tests.
Created attachment 8613013 [details] [review] PR I think some of these were already addressed, all that remained to be done was fix the instructions for running unit tests.
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/8eee644a0017facfe5d9e204ec97c4a0a0bd9484 Bug 1139998 - Make it more clear in docs how to set things up to run UI tests