Re: tests fail, build passes
Chuck Burgess <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 8, 2010 at 9:45 AM, Davies, Greg <[email protected]>wrote: > Hi, > > I've been having some trouble with one of my builds passing, even when the > tests fail. There are two executables that run CUnit tests. These are > translated into JUnit style results, and then displayed on the dashboard. > This has been working for me for a few months, when the tests fail, the > build fails, and I know about it, and fix it. > > Recently, I have added another suite of tests to one of my test > executables. These tests fail, but the build still passes. This only happens > with the new tests. If any other test fails, the build still fails like it > should. > > The dashboard detail even shows the tests as failures in the tests tab. > Does anyone have any suggestions as to why some tests may not cause a test > to fail while others do? > First thing in my mind is making sure your *failonerror* attribute is set * true* on the *exec* task that runs the new test suite. Second thing would be to verify that a manual execution of that test suite returns a nonzero exit code if there are test failures, which is what the *exec* would look for to indicate the suite had failures. -- CRB ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user