This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.Assert; | |
import org.testng.ITest; | |
import org.testng.annotations.DataProvider; | |
import org.testng.annotations.Factory; | |
import org.testng.annotations.Test; | |
/** | |
* Example of using TestNG DataProviders and a Factory constructor to generate multiple sets of tests which can each | |
* make use of their own data providers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
#Add me to your .git/hooks/pre-commit in order to run travis lint when your .travis.yml changes | |
#This own't work if travis CLI isn't installed | |
#Note that I require bash, not sh | |
if grep --quiet ".travis.yml" <( git diff --cached --name-only ) | |
then | |
travis lint -x | |
if [ $? -ne 0 ]; then { echo "failing travis lint"; exit 1; } fi |
NewerOlder