Closed defunctzombie closed 10 years ago
another easy option is to use component test. It's mostly a matter of just building & installing, and then typing component test browser
. You can use saucelabs, too.
@bmcmahen component test didn't work on this repo. Maybe I did something wrong.
make test
in this repo doesn't work for me (I did the typical component install and build first). I am merging this because it is a working way to actually run the tests and provides things like sourcemaps for stacktraces which are very helpful to debug issues in tests. If someone wants to come along and make component test work without sacrificing ease of testability and writing test, by all means.
Strange -- works for me. Make sure you're doing component install -d
and component build -d
before using component test browser
. Having said that, if you're the main caretaker of this repo I'd be game for whatever works best for you.
@bmcmahen what is the -d for? to install dependencies? My knowledge of component is limited so it is likely I did not install things properly
-d
installs development dependencies I believe
@defunctzombie like @ilsken said, it installs developer dependencies. That was probably your problem.
Maybe this should be more clear in the docs @MatthewMueller ?
I know you all use component so feel free to reject this PR. Zuul allows you to iterate tests without restarting it or doing any build steps. Try it with
npm run test-local
and then open a browser when it tells you.I dunno how else to make sure this stuff every works and changes don't break things :)
FYI, doesn't work on IE 9 (if you care)