Hey Guys,

I might fail the build tonight. It all depends on the timing of when the
Daily Build runs. Since, I just recently fixed the problem.

Anyway, I've just discovered that one of test fails (i just fixed it),
because another unit test leaves the user.project.doc in non-clean state
after running. The following is the user.project.doc file for the
testdataset user after running a freshStart junitAll in my local
configuration of Hackystat. You can see that a unit test created the
project "TestTelemetryChartAnalysis-TestingProject" and didn't delete it
when it was finished with it.

My test case assumed that there would be no defined projects for the
testdataset user and did an assertion on the number of rows of Projects I
see in table (which should have been just one, but apparently it was two).
There are two morals to this story: (1) I suppose I shouldn't make that
assumption any more and (2) we should make sure to leave the state of the
system in the same state before running a unit test. That means whoever's
test project this is, please make sure you do a
ProjectManager.deleteProject("TestTelemetryChartAnalysis-TestingProject")
when tearing down your test case.

thanks, aaron

<?xml version="1.0" encoding="UTF-8"?>
<projects>
  <project name="TestTelemetryChartAnalysis-TestingProject"
owner="[EMAIL PROTECTED]" startday="1041458400000"
endday="1072908000000" description="Project description">
    <members>
      <member email="[EMAIL PROTECTED]" status="Confirmed" />
    </members>
    <workspaces>
      <workspace value="C:\junk\" />
    </workspaces>
  </project>
</projects>

Reply via email to