I am working with the fine gentlemen over at BuddyBuild HQ together to integrate Karma Tests into BuddyBuild.
First, make sure to install karma and karma-cli gobally in your postclone script:
echo '=== Karma Test Environemnt ===' npm install -g karma npm install -g karma-cli
Then make sure to add this Karma Logic like below. It is watching for exit codes, so ideally you have in your karma.conf.js the key-value
singleRun: true set. Just in case I added switches to the commandline in below script.
This is the expected output of above script in the Cloud:
Working Karma Tests - Build Continues
Failing Karma Tests - Build Aborts
Now I can blame my team mates at work and even proof it. This enables me to become a mean dictator. Finally. ;]
Git Annotate the Karma Failure in IDE
Priceless: Being able to blame your Teammates and proove it
Ensure Software Quality aka Boost for Team Spirit and meeting Deadlines
Squash them Bugs effordlessly with Automated Tests while being drunk or something
Thanks for reading and good luck with your project!