joshuagruenstein / snooze

A lightweight JS front-end microframework for API-first webapps.
MIT License
1 stars 0 forks source link

Unit testing and continuous integration with Travis #7

Open joshuagruenstein opened 8 years ago

joshuagruenstein commented 8 years ago

@truell20?

joshuagruenstein commented 8 years ago

I think there are solutions to test across a wide range of browsers. I think I've seen a little badge in a README that showed individual browsers passing or failing, which would be nice.

truell20 commented 8 years ago

Travis charges for private repos

truell20 commented 8 years ago

We can use the Karma test runner to test across multiple browsers. I'm like Jasmine as an assertion library.

truell20 commented 8 years ago

What are some of the unit tests tests that you are considering? We can check to see if a number of examples that encompass all of the smooth functionality render in the predictable way. However, do you have any ideas for more fine grained tests? Ex. testing the req function by giving it the URL for a predictable API

joshuagruenstein commented 8 years ago

We can do templating tests, pipe tests for all three types, guard tests, handler tests, model tests, request tests, and minimorph tests to start. I think for a small library like snooze, 100% coverage is a reasonable goal.

truell20 commented 8 years ago

Is it necessary to test minimorph? I assume that the original library is tested. Do we need to test their code? Can we steal their tests?

joshuagruenstein commented 8 years ago

I've been rewriting minimorph pretty aggresively, so yeah we definitely need to test it.

truell20 commented 8 years ago

Just curious, what have you rewritten?

joshuagruenstein commented 8 years ago

Most of what I've been done has been cutting things down, and rewriting after to fill in the holes. MorphDOM is 530 lines, Minimorph is 120. However, I have completely rewritten attribute morphing.

joshuagruenstein commented 6 years ago

Letting you know @truell20, legit rewriting Battlecode 2019 in snooze rn.

truell20 commented 6 years ago

stop

truell20 commented 6 years ago

for fun or for real?