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.

devmode is a bad name?

See original GitHub issue

The devmode option allows the tests container to run full screen.

This is useful for testing (for example) scrolling a certain size element to a certain location.

Because the dimensions used in the test are related to the actual window size. Not the scaled test container. For which half-size values must be used.

Tests in the browser with devmode will pass, but will fail when run on the command line.

Unless that is, if devmode is added to the testem config.

But, calling it devmode, doesn’t make sense if it’s being used in what is essentially a test-mode.

Wouldn’t it be better to call it what is actually does, which is:

if (params.devmode) {
   testContainer.className = ' full-screen';
}

I’m suggesting it be renamed to fullscreen

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Oct 22, 2020

Seems fine to have, but I don’t think we should add a checkbox for it.

0reactions
rohitpaulkcommented, Oct 22, 2020

Not against devmode, but it’d be nice to have fullscreencontainer as a separate option to use in CI. Happy to contribute a PR here - want to confirm if this functionality is acceptable before proceeding:

Add fullscreencontainer as an option, which’ll only toggle the container positioning/width but not the timeout (like devmode does).

Read more comments on GitHub >

github_iconTop Results From Across the Web

So who else is in denial about using dev mode every so often?
My name is rook and I use Dev mode to destroy corpses. ... have an option for multiple colonies, with a warning bad...
Read more >
Development Mode (aka “devMode” - Apache Struts
Struts 2 has a setting (which can be set to true or false in default. properties) called devMode (= development mode).
Read more >
Understanding Printer Settings and DEVMODE
Public part: This part encodes general settings that are exposed in the printer driver model, such as printer name, driver version, paper size,...
Read more >
Print Driver DevMode Corruptor Test | Microsoft Learn
This automated test uses good and bad DEVMODE structures to make sure that the driver ... TestExecutable Name, Test Executable name.
Read more >
Dev mode compiler does not use -parameters #4632 - GitHub
Either specify its name, or tell your compiler to enable debug info (-g) or ... (bad) then dev mode will give the user...
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