question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Robot Name Test case there can be many robots

See original GitHub issue

https://github.com/exercism/xecmascript/blob/master/exercises/robot-name/robot-name.spec.js#L28

This test is assuming global state of usedNames. In JS5 this this the way it is because var is global. I don’t think that should be the case for ES6+. I think part of it is that the class name is Robot instead of RobotName. Something like usedName or similar should be encapsulated inside the class to avoid global state.

related: https://github.com/exercism/xjavascript/issues/105 https://github.com/exercism/xjavascript/blob/master/exercises/robot-name/robot-name.spec.js#L35

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
kotpcommented, Mar 21, 2017

@rchavarria said:

I don’t know if users can submit several files

from this comment

I just wanted to answer “yes” to that doubt. It is possible. Here is an example of doing such a thing.

0reactions
kotpcommented, Mar 23, 2017

I think since the practitioner is going to edit the tests, they are likely to comment out the skips as they are used to doing, they are going to be in that file, when their tests fail, and that test doesn’t look like the others, they are likely to read the comments. Or at least more likely, at that point.

People are funny though, sometimes they can’t see the ketchup in the door for the ketchup on the second shelf of the fridge.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Robot Framework User Guide
Robot Framework is a Python-based, extensible keyword-driven automation framework for acceptance testing, acceptance test driven development (ATDD), behavior ...
Read more >
NAME THAT ROBOT QUIZ - Can you guess them all? - YouTube
Test your knowledge of robots with my Name That Robot quiz. It starts off easy but quickly gets more and more difficult.
Read more >
How to write good test cases using Robot Framework - GitHub
General guidelines for writing good test cases using Robot Framework ... If a suite contains many similar tests and is well named, test...
Read more >
Getting Started with Robot Framework – Basic Concepts
This article will show you the basics of Robot Framework. ... The test case name in this example is Display iPhone Search Results....
Read more >
Robot Framework: The Ultimate Guide to Running Your Tests
This blog post will give an overview of the Robot Framework and explain how to create your Selenium tests in Robot as well....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found