component / reactive

Tiny reactive template engine
382 stars 48 forks source link

test via zuul for browser support #117

Closed defunctzombie closed 10 years ago

defunctzombie commented 10 years ago

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)

bmcmahen commented 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.

defunctzombie commented 10 years ago

@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.

bmcmahen commented 10 years ago

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.

defunctzombie commented 10 years ago

@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

tarqd commented 10 years ago

-d installs development dependencies I believe

bmcmahen commented 10 years ago

@defunctzombie like @ilsken said, it installs developer dependencies. That was probably your problem.

bmcmahen commented 10 years ago

Maybe this should be more clear in the docs @MatthewMueller ?