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.

Be able to run a single test by interacting with it in the Browser

See original GitHub issue

Current behavior:

When you want to run only one spec/context, you must supply .only in code

Desired behavior:

Each test and context should have a deep link which would be interpreted by cypress as the “only”. This way, code changes do not need to be made to demonstrate the running of many tests (as currently all tests cannot be run at once). This is how we have used similar test suites, like jasmine, to run a specific suite/spec in the browser without code modifications.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:26
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

18reactions
G1itchercommented, Jan 30, 2019

100% putting my vote behind being able to run a single test. If I’m trying to edit a single test, it doesn’t make sense to run all of the tests in that spec

16reactions
jaredtmartincommented, Dec 27, 2018

It would simply be faster and more convenient to be able to click on a single test and have it run. That’s what one expects to happen intuitively.

On Dec 26, 2018, at 5:44 PM, Gleb Bahmutov notifications@github.com wrote:

There is eslint plugin that checks “only” and a stand alone utility I wrote called “stop-only” that can catch stray only left in the source code

Sent from my iPhone

On Dec 26, 2018, at 18:03, sendittokeith notifications@github.com wrote:

That is a better work around, but not a solution since you could risk forgetting to remove the .only - but thanks, at least that work around is better 😃

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cypress-io/cypress/issues/925#issuecomment-450042085, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYGCvB-mqWYvA8IrkpzsPVbQOJy6tAWks5u9An1gaJpZM4QhfgB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright Runner: Limit Test to only One Browser - YouTube
Once you install Playwright and execute your test, you will find your single test will run on three browsers with two workers running...
Read more >
How to run unit-tests in all browsers? - Stack Overflow
For unit-testing you can try http://code.google.com/p/js-test-driver/. JsTestDriver consist of a single JAR file which contains everything you need to get ...
Read more >
How To Get Started With Automated Browser Testing?
This blog will help you get started with automated browser testing guiding you through a range of languages and frameworks.
Read more >
What is Cross Browser Testing and How to Perform It
Users can run Selenium automation tests on a scalable, secure, and reliable cloud-based Selenium grid and perform live interactive cross-browser ...
Read more >
Creating and Running Web Tests in Headless Web Browsers ...
It does not matter which browser you choose. You will be able to run your test in a headless browser either way. However,...
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