init
This commit is contained in:
10
test/assertFileContains
Executable file
10
test/assertFileContains
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
|
||||
|
||||
assertFileExists $1
|
||||
|
||||
if ! grep -q $2 $1; then
|
||||
error "'$2' not found in '$1'"
|
||||
exit 1
|
||||
fi
|
8
test/assertFileDoesntExist
Executable file
8
test/assertFileDoesntExist
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
|
||||
|
||||
if [ -f $1 ]; then
|
||||
error "File '$1' found"
|
||||
exit 1
|
||||
fi
|
8
test/assertFileExists
Executable file
8
test/assertFileExists
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
error() { echo -e "\\e[31m✗ $*\\e[0m"; }
|
||||
|
||||
if [ ! -f $1 ]; then
|
||||
error "File '$1' not found"
|
||||
exit 1
|
||||
fi
|
2
test/example-project/sonar-project.properties
Normal file
2
test/example-project/sonar-project.properties
Normal file
@ -0,0 +1,2 @@
|
||||
sonar.projectKey=foo
|
||||
sonar.sources=src/
|
5
test/example-project/src/main.js
Normal file
5
test/example-project/src/main.js
Normal file
@ -0,0 +1,5 @@
|
||||
function main() {
|
||||
console.log("Hello World");
|
||||
}
|
||||
|
||||
main();
|
0
test/gradle-project-kotlin/build.gradle.kts
Normal file
0
test/gradle-project-kotlin/build.gradle.kts
Normal file
1
test/gradle-project/build.gradle
Normal file
1
test/gradle-project/build.gradle
Normal file
@ -0,0 +1 @@
|
||||
|
1
test/maven-project/pom.xml
Normal file
1
test/maven-project/pom.xml
Normal file
@ -0,0 +1 @@
|
||||
|
Reference in New Issue
Block a user