DanTup · GitHub

"configurations": [
	{
		"name": "Dart",
		"program": "bin/main.dart",
		"request": "launch",
		"type": "dart",
	},
	{
		"name": "Run in Browser",
		"request": "launch",
		"type": "dart",
		"template": "run-test",
		"env": {
			"MY_VAR": "Yay!"
		}
	},
	{
		"name": "Debug in Browser",
		"request": "launch",
		"type": "dart",
		"template": "debug-test",
		"env": {
			"MY_VAR": "Yay!"
		}
	}
]

(Note: the names here are just examples - this doesn't do anything with testing on browsers - it's up to a user to pass through some arguments or environment variables in the config and then handle them as required in their tests).

Read the original on github.com ↗