ease.js - Tasks: task #12091, Test Refactoring: Toward...
You are not allowed to post comments on this tracker with your current authentication level.
task #12091: Test Refactoring: Toward xUnit-Style Testing
Submitter: | Mike Gerwitz <mikegerwitz> | ||
Submitted: | Sun 10 Jun 2012 12:39:21 AM UTC | ||
Should Start On: | Sat 05 Nov 2011 04:00:00 AM UTC | Should be Finished on: | Mon 20 Jan 2014 05:00:00 AM UTC |
Category: | Core | Priority: | 9 - Immediate |
Item Group: | Maintenance | Status: | Done |
Privacy: | Public | Assigned to: | mikegerwitz |
Percent Complete: | 100% | Open/Closed: | Closed |
Planned Release: | 0.2.0 | ||
Keywords: | refactor, testing,xunit |
No files currently attached
Depends on the following items: None found
Items that depend on this one
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 8 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2015-05-20 | mikegerwitz | Status | In Progress | Done | |
2014-01-20 | mikegerwitz | Open/Closed | Open | Closed | |
2014-01-20 | mikegerwitz | Percent Complete | 90% | 100% | |
2014-01-20 | mikegerwitz | Should be Finished on | 2013-01-01 | 2014-01-20 | |
Percent Complete | 40% | 90% | |||
Planned Release | None | 0.2.0 | |||
Keywords | refactor, testing | refactor, testing,xunit | |||
2012-06-10 | mikegerwitz | Dependencies | - | task #12088 is dependent |
Powered by Savane 3.13-0329.
Corresponding source code
Move all unit tests over from collections of self-executing functions to test cases using the new xUnit-style system.
As ease.js was originally written as a small collection of CommonJS modules with very little taken from Classical OOP, the testing was also fairly simple. Test cases were simply files with collections of self-executing functions, which served to separate individual tests within the case.
A small xUnit-style test case system and a suite runner have been developed for use in ease.js in order to provide better organization and useful output. The design is simple and will expand as is needed. The output has been modeled after my use of phpUnit. I am not interested in introducing a 3rd party testing framework, as I wish to keep the combine process for browser deployment fairly simple (that is: not change it around, at least at this time).