When you are running any Static Analysis tool for Security such as IBM's AppScan Source and HP's Fortify SCA, and you notice errors such as the following, the simplest way to solve this is to disable running your unit tests.
[ERROR] Failed to
execute goal com.github.searls:jasmine-maven-plugin:126.96.36.199:test
(run-jasmine-unit-tests-external-min) on project your-project-name: There were
Jasmine spec failures. -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
The code needs to be compiled and packaged, however there is no need for unit tests to run successfully for getting good results. So, at this point to get the static analysis tool running, use one of the following commands and you should be up and running.
To skip running tests, use one of the below commands:
mvn clean compile package –DskipTests or
mvn package –Dmaven.test.skip=true