Comments (13)
looks like a bug.
from nightwatch.
Then..."Its clobbering time!" :) lol
from nightwatch.
When screenshots are saved on windows they ignore the screenshots folder in settings.json too. Only raising because they might be releated.
from nightwatch.
Its working! ...but only part of the time. :(
ran a mix of failing and passing tests
I expected reporting on the passed and failed tests
✖ Testing if element <a.signIn> contains text: undefined. Element could not be located.
INFO Request: DELETE /wd/hub/session/ae2e7c3f-5d5b-4587-b0dd-22ce80716931
- data:
- headers: {}
ERROR: Unable to locate element: "a.signIn" using: css selector
LOG - Completed command getText
INFO Response 204 DELETE /wd/hub/session/ae2e7c3f-5d5b-4587-b0dd-22ce80716931 {}
TEST FAILURE: 4 assertions failed, 5 passed and 9 skipped.
Unable to locate element: "a.signIn" using: css selector
FAILED: 1 assertions failed, 1 errors, 1 passed and 1 skipped
LOG - Completed command session
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory 'c:\dev\prj\git-repos\asgard.js\reports\functional\basic.xml'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at c:\dev\prj\git-repos\asgard.js\node_modules\nightwatch\runner\reporters\junit.js:36:10
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
waseymour@OR-WASEYMOUR-L1 /c/dev/prj/git-repos/asgard.js (nightwatch)
Now, nightwatch is reporting, but only if all tests succeed
from nightwatch.
Update my last:
- If I run single test (passes for fails), reporting works! Thanks!
- But, if if I run more than one, and any fails, reporting does not work. :(
@beatfactor Sorry for pestering, but I really do not want to have to be forced to doing this in Java by my managers.
from nightwatch.
Interesting
features
?:
Doesnt report correctly:
settings.json excpert:
{
"src_folders": ["tests/functional"],
"output_folder": "reports/functional",
output excerpt:
INFO FINISHED
OK. 2 assertions passed.
TEST FAILURE: 2 assertions failed, 6 passed and 8 skipped.
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory 'c:\dev\prj\git-repos\asgard.js\reports\functional\functional\basic.xml'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at c:\dev\prj\git-repos\asgard.js\node_modules\nightwatch\runner\reporters\junit.js:36:10
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
waseymour@OR-WASEYMOUR-L1 /c/dev/prj/git-repos/asgard.js (nightwatch)
Also, doesnt report correctly:
settings.json excpert:
{
"src_folders": ["tests/functional"],
"output_folder": "reports",
output excerpt:
INFO FINISHED
OK. 2 assertions passed.
TEST FAILURE: 2 assertions failed, 6 passed and 8 skipped.
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory 'c:\dev\prj\git-repos\asgard.js\reports\functional\basic.xml'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at c:\dev\prj\git-repos\asgard.js\node_modules\nightwatch\runner\reporters\junit.js:36:10
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
waseymour@OR-WASEYMOUR-L1 /c/dev/prj/git-repos/asgard.js (nightwatch)
DOES report correctly:
settings.json excpert:
{
"src_folders": ["tests/functional"],
"output_folder": "reports",
create the reports/functional
dir manually (grunt, shell, etc):
# cygwin:
mkdir -p reports/functional
output excerpt:
INFO FINISHED
OK. 2 assertions passed.
TEST FAILURE: 2 assertions failed, 6 passed and 8 skipped.
waseymour@OR-WASEYMOUR-L1 /c/dev/prj/git-repos/asgard.js (nightwatch)
@beatfactor any ideas man?
from nightwatch.
this is only on windows happening?
from nightwatch.
I would find it very unpleasant too if I would have to do this in Java :-).
from nightwatch.
The output folder isn't created automatically, it has to be an existing folder. Were you expecting it to be created by the runner?
from nightwatch.
Yeah, I was expecting it to be created.
I'll check it out on my MAC tonight.
Thanks again man.
from nightwatch.
No problem. So if the folder is existing does it work properly?
from nightwatch.
Yes sir! All seems well.
I do thing nightwatch should just create the report dir though :)
from nightwatch.
yes, I'll add that soon.
On Mon, Feb 10, 2014 at 4:19 PM, W. K. Seymour III <[email protected]
wrote:
Yes sir! All seems well.
I do thing nightwatch should just create the report dir though :)
Reply to this email directly or view it on GitHubhttps://github.com/beatfactor/nightwatch/issues/21#issuecomment-34642951
.
from nightwatch.
Related Issues (20)
- tsconfig.json is trying to extend from root tsconfig.json, which is not present.
- Element API sends further HTTP requests in failed chained commands HOT 10
- Throwing `TimeoutError` when chained .find() command fails HOT 18
- Supress error for chained `.find()` command HOT 1
- [BUG 🐞 ] Discord Server Invite Link Broken HOT 4
- testRunWithExistingCommands HOT 2
- tsconfig file missing in the root directory HOT 1
- UI/UX bug in nightwatch organisation website HOT 17
- .getText() documentation syntax error in example HOT 3
- Add `isDisplayed()` as an alias command for `isVisible()` in new Element API. HOT 5
- Example with-page-object of Google failed due to some changes in website HOT 5
- Incorrect example for `element.takeScreenshot()` HOT 1
- Firefox or chrome driver is not installed on android emulator while running mobile-helper on NightwatchJS
- mouseButtonClick() is not working same as suggested actions.click() HOT 8
- BUG: Getting 404 Error on Clicking Elements Commands on main Website. HOT 4
- BUG : Links of .alerts section isn't working HOT 4
- .verify swallows custom assertion initialization errors HOT 1
- Abort test on `waitUntil` failure when using it standalone with async/await. HOT 6
- Nightwatch commands in `waitUntil` callback return `NightwatchAPI` instead of a `Promise`. HOT 9
- 4000+ tests eats up disk space *nom* HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightwatch.