I’ve been building a test framework for acceptance testing the Point Inside client API. I based the concept on Fit and Fitnesse, an open source framework for just this type of testing. Since this is for the iPhone, I used the UITableView in a NavigationController to provide a hierarchical layering. I use colored text to show status.
Gray text means the test hasn’t run.
Yellow text means the lower level tests had mixed results.
Red text means the test failed, and green text means the test passed.
The actual tests need to have a lower level view that shows specific data about the test. Pressing any test cell causes the test to execute. If you select the cell in the first or second image above, the tests below that get executed.
There’s a color issue with going back up the chain. The first image is gray because I pressed the cell in the second image. Going back to the first view, the color isn’t updating.
So there is more work, but I’m going to proceed with this. In the future, when I have some time, I’m going to work on making this an open source package for others to be able to create acceptance testing of iPhone applications.
I now have HikeSuperstition displaying trails. The problem is, the maps don’t have any data in the areas where we are putting trails, so the map looks pretty blank.
Here is an example:
I could use Google maps, but Google is all about downloading from the web, not caching on the device. Since there is no connection to the internet in much of the areas we are mapping, dynamic downloading won’t work. The trail will need to be downloaded first.
on edit: This may be the last update here for a while, as my PointInside project is starting to move, so I’ll be focusing my development time there now.
At long last, after far too much effort, I’ve gotten HikeSuperstitionMountain iPhone app to display trailheads on the map. It also rotates.
Part of this effort involved creating a sample application (SimpleSampleMap) for the route-me project. This application acted as a base to develop HikeSuperstitionMountain from. Now working on adding the ability to select the trailhead markers and open a UIWebView that displays information about the trailhead, and the trail(s) that start from that location.
I’ve been working on an iPhone app that we’re calling something creative like HikeSuperstitionMountain. This application will provide users with pre-mapped trails that they can follow on their iPhones, using Core Location to provide location via the GPS chip.
Currently I have the application using route-me, an open source mapping project designed to provide map data, currently from OpenStreetMap project. We may change to another source before submitting to the AppStore, as the Open Street Maps data does not include the wilderness area.
I am also currently showing the trailheads on the map, which you can see in the image I’ve linked to below:
In an effort to contribute to an open source project and improve my understanding and status in the iPhone development community, I’ve started working on route-me, an open source project to provide mapping capabilities for other projects to use.
I’m building a sample app so other developers will have an example that they can use to start their own application.
Megan McArdle has a great article showing the moral bankruptcy of the logic that our leaders seem to be using today.
But second of all, just as there is no way to tax a corporation, there is no way to default on a corporation. Whenever you default, you are taking money from some person: a shareholder, a creditor, an employee who loses their job when the corporation is liquidated.
And to return to the question I asked earlier: what if Felix were defaulting on you? Because he probably is. His mortgage bonds are owned by pension funds, bond funds, and of course, investment companies whose debt is in turn held by bond funds, pension funds, and insurers. If they suffer gigantic losses, they will either leave a bunch of people unprepared for various forms of financial distress, like retirement or a house fire–or the taxpayer, aka you, will bail them out.
I’m not generally an apologist for Bush or the latest incarnation of Republicrats, but this certainly proves who was unwilling to deal with the problems at Fannie Mae and Freddie Mac when they could have been dealt with.
I’ve been reviewing a unit test plan today. I should really be a simple document. Use this test framework. Write tests before writing code. Execute tests continually to verify good code.
Rinse and repeat until done. All tests will pass and after running a code coverage tool, justify any code not covered with tests.
But that apparently doesn’t match the approach this organization wants to use. They don’t want to run tests until code is ready for checkin. And they want all manner of metrics kept.
I find that this is a good group to work with, but the bureaucracy is toxic to me, at least.
Started working on imGravityGame, a demonstration of the use of IMSRGravity in the imSimReal framework. I’m working on the flipSide where I start with a Picker to pick the body providing the gravitational attraction, such as a planet. In -initWithNibName:Bundle:, I load the IMSRGravity object.
gravity = [IMSRGravity alloc] init];
In -viewDidLoad:, I construct an NSArray using the keys from gravity:
planets = [gravity allKeys];
The FlipSide implements two data source methods:
-numberOfComponentsInPickerView:
which returns 1, and
-pickerView:numberOfRowsInComponent:
which returns the number of planets in the gravity:
return [planets count];
It also implements one UIPickerViewDelegateMethod
:
-pickerView:titleForRow:forComponent:
which returns the name of the planet indicated by the NSInteger row
return [planets objectAtIndex: row];
At this point I realized that IMSRGravity needs a place to store the currently selected planet, so I will be going back to imSimReal and preparing 0.1RC3 soon (like tomorrow, hopefully).
Here is the current status of FlipSideViewController class: