I am trying to automate my build through Jenkins and facing some issues.
I have some Unit test cases and some Sanity (Blockers) test in separate xml suites, and I want that if a Unit test fails the build should not be affected (should complete successfully) though I should got the failed case reports. But if any of the Sanity test case failed the build should be marked as failed.
Also can I marked the build as failed if more than 70% Unit Test cases failed
Is this achievable thought some plugins or scripts, if so, Please let me know how?
I am using TestNG, Maven3 and Jenkins