QR tests MUST use native language libraries, not qrencode CLI. If the sandbox doesn't have the library, the test should FAIL honestly so we know what to fix in the sandbox image. Also adds CLAUDE.md rule to prevent future attempts to replace native library QR tests with CLI subprocess calls.
7 lines
243 B
Groovy
7 lines
243 B
Groovy
#!/usr/bin/env groovy
|
|
import com.google.zxing.BarcodeFormat
|
|
import com.google.zxing.qrcode.QRCodeWriter
|
|
|
|
def w = new QRCodeWriter()
|
|
def m = w.encode("unsandbox-qr-ok", BarcodeFormat.QR_CODE, 0, 0)
|
|
println "QR:unsandbox-qr-ok:ROWS:${m.height}"
|