A plugin for web-component-tester that provides a dummy browser.
The intent for this plugin is to make it possible to start the WCT webserver, but not waste any resources on starting a browser for tests. Instead the user can start whatever testing/debugging environment they want manually.
Example using Visual Studio as debugger
wct-noneplugin into the projectnpm install --save-dev web-component-tester wct-none
It is safe to save the plugin as development dependency in
package.json, it will do nothing unless explicitly activated.
Create or modify
.vscode/launch.jsonin the project
Note that you must replace
COMPONENT_NAMEin the URL for Chrome, and
path/to/testswith the path to the root of the test suite.
debug.allowBreakpointsEverywheresetting in the user or workspace preferences
This makes it possible to set breakpoints everywhere, and let's Chrome work out how to best do that.
Launch the 'Run wct' configuration
This will log an error about not being able to connect to 127.0.0.1:4444, which can be ignored. PR's welcome :)
Launch the 'Run chrome for wct' configuration
Set breakpoints etc inside Visual Studio
This software is licensed under the Apache 2 license, quoted below.
Copyright 2017 Collaborne B.V. <http://github.com/Collaborne/>
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under