All "Data generation" Snippets
$date$
Get the current date.

<template name="$date$" value="'$date$'$END$" description="Generate the current date" toReformat="false" toShortenFQNames="true">
<variable name="date" expression="date("yyyy-MM-dd'T'HH:mm:ss.SSSz")" defaultValue="" alwaysStopAt="false" />
<context>
<option name="PHP Expression" value="true" />
</context>
</template>
Live template
Do you speak French and want to stop hating your tests ?

I've created a course to help developers to improve their automated tests.
I share ideas and technics to improve slow, flaky, failing for unexpected reason and hard to understand tests until they become tests we take joy to work with !
But you'll need to understand French...
$uuid$
Generate an UUID.

<template name="$uuid$" value="'$uuid$'$END$" description="Generate an UUID" toReformat="false" toShortenFQNames="true">
<variable name="uuid" expression="groovyScript("UUID.randomUUID().toString()") " defaultValue="" alwaysStopAt="false" />
<context>
<option name="PHP Expression" value="true" />
</context>
</template>
Live template