Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ac8c6d18
Commit
ac8c6d18
authored
Oct 31, 2014
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct script exit status
TE-567
parent
375a38c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
22 deletions
+45
-22
scripts/run_unit_tests.sh
+44
-0
scripts/run_ut.sh
+0
-21
tddium.yml
+1
-1
No files found.
scripts/run_unit_tests.sh
0 → 100755
View file @
ac8c6d18
#!/bin/sh
EXIT
=
0
store_exit_code
()
{
code
=
$?
if
[
${
code
}
-ne
0
]
then
EXIT
=
${
code
}
fi
}
echo
'Configuring jscover...'
mkdir
-p
jscover-dist
&&
wget http://files.edx.org/testeng/JSCover-1.0.2.zip
-P
jscover-dist
&&
unzip jscover-dist/JSCover-1.0.2.zip
-d
jscover-dist/
&&
cp jscover-dist/target/dist/JSCover-all.jar jscover-dist
&&
export
JSCOVER_JAR
=
$PWD
/jscover-dist/JSCover-all.jar
store_exit_code
echo
'jscover configured'
paver
test
store_exit_code
echo
'Collecting Coverage...'
paver coverage
store_exit_code
echo
'Coverage Collection Completed'
current_path
=
`
pwd
`
reports_path
=
${
current_path
}
/reports
dest_path
=
${
HOME
}
/results/
${
TDDIUM_SESSION_ID
}
/session/
unit_combined_rpt
=
${
reports_path
}
/diff_coverage_combined.html
echo
'Copying '
${
unit_combined_rpt
}
' to '
${
dest_path
}
cp
-f
${
unit_combined_rpt
}
${
dest_path
}
store_exit_code
echo
'Copied '
${
unit_combined_rpt
}
echo
'Merging unit coverage reports...'
python ./scripts/cov_merge.py unit
&&
python ./scripts/metrics/publish.py
store_exit_code
echo
'Unit coverage reports merged'
exit
${
EXIT
}
scripts/run_ut.sh
deleted
100755 → 0
View file @
375a38c4
mkdir
-p
jscover-dist
&&
wget http://files.edx.org/testeng/JSCover-1.0.2.zip
-P
jscover-dist
&&
unzip jscover-dist/JSCover-1.0.2.zip
-d
jscover-dist/
&&
cp jscover-dist/target/dist/JSCover-all.jar jscover-dist
&&
export
JSCOVER_JAR
=
$PWD
/jscover-dist/JSCover-all.jar
&&
paver
test
echo
'******************************************************'
echo
'Collecting Coverage...'
paver coverage
echo
'Coverage Collection Completed'
current_path
=
`
pwd
`
reports_path
=
$current_path
/reports
dest_path
=
$HOME
/results/
$TDDIUM_SESSION_ID
/session/
unit_combined_rpt
=
$reports_path
/diff_coverage_combined.html
echo
'Copying '
$unit_combined_rpt
' to '
$dest_path
cp
-f
$unit_combined_rpt
$dest_path
echo
'******************************************************'
tddium.yml
View file @
ac8c6d18
...
...
@@ -36,7 +36,7 @@ tddium:
-
"
reports/diff_quality/diff_quality_pylint.html"
-
:type
:
junit
:mode
:
basic
:command
:
bash ./scripts/run_u
t.sh && python ./scripts/cov_merge.py unit && python ./scripts/metrics/publish.py
:command
:
bash ./scripts/run_u
nit_tests.sh
:invocation
:
single
:output
:
exit-status
:report_files
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment