Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
chore(tests): script to find ignored tests (#396)
* chore(test): add script to find exclusive tests (fdescribe and fit) * test(e2e): run all e2e tests
- Loading branch information
André Kilchenmann
committed
Feb 25, 2021
1 parent
0f94df6
commit 9ca249d
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# find deactivated and exclusive tests: fdescirbe / fit / xdescribe / xit | ||
# list=$(find . -name "*spec.ts" | xargs grep 'fit\|fdescribe\|xdescribe\|xit') | ||
|
||
# TODO: the following command has to be replaced with the one above | ||
# as soon DSP-Admin is connected with DSP-VRE again | ||
|
||
# Find exclusive tests: fdescribe / fit | ||
exclusive=$(find . -name "*spec.ts" | xargs grep 'fit\|fdescribe') | ||
|
||
# get all exclusive tests | ||
hits=$(find . -name "*spec.ts" | xargs grep 'fit\|fdescribe' | wc -l) | ||
if [ $hits -ne 0 ]; then | ||
for i in "${exclusive[@]}"; do | ||
echo "WARNING: Exclusive tests found: " | ||
echo "$i" | ||
done | ||
exit 1 | ||
fi |