Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai03-protractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandre Ducarne
ai03-protractor
Commits
405d9eb0
Commit
405d9eb0
authored
6 years ago
by
Alexandre Ducarne
Browse files
Options
Downloads
Patches
Plain Diff
Improved Spec reporter
parent
65b11f0d
No related branches found
Branches containing commit
No related tags found
2 merge requests
!5
Develop
,
!4
Improved Spec reporter
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/settings.json
+2
-0
2 additions, 0 deletions
.vscode/settings.json
protractor.conf.js
+6
-6
6 additions, 6 deletions
protractor.conf.js
with
8 additions
and
6 deletions
.vscode/settings.json
0 → 100644
+
2
−
0
View file @
405d9eb0
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
protractor.conf.js
+
6
−
6
View file @
405d9eb0
...
@@ -4,7 +4,7 @@ const path = require('path');
...
@@ -4,7 +4,7 @@ const path = require('path');
exports
.
config
=
{
exports
.
config
=
{
allScriptsTimeout
:
11000
,
allScriptsTimeout
:
11000
,
//
seleniumAddress: 'http://localhost:4444/wd/hub'
//seleniumAddress: 'http://localhost:4444/wd/hub'
,
// The port to start the selenium server on, or null if the server should
// The port to start the selenium server on, or null if the server should
// find its own unused port.
// find its own unused port.
...
@@ -30,9 +30,11 @@ exports.config = {
...
@@ -30,9 +30,11 @@ exports.config = {
framework
:
'
jasmine
'
,
framework
:
'
jasmine
'
,
onPrepare
:
function
()
{
onPrepare
:
function
()
{
jasmine
.
getEnv
().
addReporter
(
new
SpecReporter
({
spec
:
{
displayStacktrace
:
true
}}));
// Add a screenshot reporter:
// Add a screenshot reporter:
jasmine
.
getEnv
().
addReporter
(
new
HtmlReporter
({
jasmine
.
getEnv
().
addReporter
(
new
HtmlReporter
({
preserveDirectory
:
fals
e
,
preserveDirectory
:
tru
e
,
takeScreenShotsOnlyForFailedSpecs
:
true
,
takeScreenShotsOnlyForFailedSpecs
:
true
,
screenshotsSubfolder
:
'
images
'
,
screenshotsSubfolder
:
'
images
'
,
jsonsSubfolder
:
'
jsons
'
,
jsonsSubfolder
:
'
jsons
'
,
...
@@ -47,13 +49,14 @@ exports.config = {
...
@@ -47,13 +49,14 @@ exports.config = {
const
day
=
currentDate
.
getDate
();
const
day
=
currentDate
.
getDate
();
const
month
=
currentDate
.
getMonth
()
+
1
;
const
month
=
currentDate
.
getMonth
()
+
1
;
const
year
=
currentDate
.
getFullYear
();
const
year
=
currentDate
.
getFullYear
();
const
time
=
currentDate
.
getHours
()
+
'
:
'
+
currentDate
.
getMinutes
()
+
'
-
'
+
currentDate
.
getSeconds
();
const
validDescriptions
=
descriptions
.
map
(
function
(
description
)
{
const
validDescriptions
=
descriptions
.
map
(
function
(
description
)
{
return
description
.
replace
(
'
/
'
,
'
@
'
);
return
description
.
replace
(
'
/
'
,
'
@
'
);
});
});
return
path
.
join
(
return
path
.
join
(
day
+
'
-
'
+
month
+
'
-
'
+
year
,
day
+
'
-
'
+
month
+
'
-
'
+
year
+
'
-
'
+
time
,
validDescriptions
.
join
(
'
-
'
));
validDescriptions
.
join
(
'
-
'
));
},
},
}).
getJasmine2Reporter
());
}).
getJasmine2Reporter
());
...
@@ -64,7 +67,4 @@ exports.config = {
...
@@ -64,7 +67,4 @@ exports.config = {
defaultTimeoutInterval
:
30000
,
defaultTimeoutInterval
:
30000
,
print
:
function
()
{},
print
:
function
()
{},
},
},
onPrepare
:
function
()
{
jasmine
.
getEnv
().
addReporter
(
new
SpecReporter
({
spec
:
{
displayStacktrace
:
true
}}));
},
};
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment