Add unit tests

Bug #1514306 reported by Marcus Tomlinson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-js-scopes
New
Undecided
Unassigned

Bug Description

Add tests at the unit level.

summary: - Add tests at the unit level
+ Add unit tests
Revision history for this message
Michael Weimann (m982) wrote :

I like testing :) So I want to make a start here.

Do you have any preferences for a test framework? I did some research and found Boost.Test and googletest looking promising.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

So what I was thinking is that we use gtest, in pretty much the same way we have done with v8-cpp (https://launchpad.net/v8-cpp), whereby we run script snippets against the bound API and assert for expected returns / behavior etc.

If you're up to it, you could have a look at v8-cpp and see how that approach could be applied here. Even if we just get a branch together with the scaffolding in place and 1 very simple test working that'd be a great start!

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

+1 for gtest,

thank you for having a look at it

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.